We recently published our new Terraform Modules and the corresponding quick start guide and repository.
We’ve just updated the AWS modules and quick start repository so the components will log to Cloudwatch if the appropriate flag is enabled. Each of the EC2 instances (the hexagons) in the image below will now log to cloudwatch when enabled.
Enabling Cloudwatch Log
To enable cloudwatch logs, you just need to enable the cloudwatch_logs_enabled
flag:
cloudwatch_logs_enabled = true
You can also customise the log retention, which will default to 7 days:
cloudwatch_logs_retention_days = 7