This module creates a Lambda function that forwards logs to Guance Cloud.
The first step is cloning this repository:
git clone https://github.com/GuanceCloud/terraform-guance-forwarder.git
cd terraform-guance-forwarder/examples/aws
Create the variables file test.tfvars
with the following content:
cloudwatch_log_group_arn = "arn:aws:logs:..."
cloudwatch_events_rule_arn = "arn:aws:events:..."
guance_endpoint = "https://datakit-hostname:9529"
Run the following commands to apply the real resource in this example:
terraform init
terraform apply -var-file=./test.tfvars
If you have any questions or suggestions, feel free to open an issue within this repository.
This project is licensed under the Apache-2.0 License.