initial commit
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<!-- This readme file is generated with terraform-docs -->
|
||||
This module installs Cloudwatch agent via SSM State Manager.
|
||||
It creates an association and install the agent to all instances every 1 day.
|
||||
|
||||
Then a default cloudwatch agent config is generated using amazon-cloudwatch-agent-config-wizard,
|
||||
saved on /opt/aws/amazon-cloudwatch-agent/bin/config.json, supplemented with additional collections,
|
||||
and uploaded on SSM parameter store as ```AmazonCloudWatch-linux```.
|
||||
|
||||
Note that for cloudwatch agent to fully function, the instance needs an instance profile with the
|
||||
following managed policies attached:
|
||||
|
||||
* CloudWatchAgentServerPolicy
|
||||
* AmazonSSMManagedInstanceCore
|
||||
|
||||
## Requirements
|
||||
|
||||
| Name | Version |
|
||||
|------|---------|
|
||||
| terraform | >= 1.3.0 |
|
||||
| aws | >= 5.0 |
|
||||
|
||||
## Providers
|
||||
|
||||
| Name | Version |
|
||||
|------|---------|
|
||||
| aws | >= 5.0 |
|
||||
|
||||
## Modules
|
||||
|
||||
No modules.
|
||||
|
||||
## Resources
|
||||
|
||||
| Name | Type |
|
||||
|------|------|
|
||||
| [aws_ssm_association.ConfigCwAgent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_association) | resource |
|
||||
| [aws_ssm_association.InstallCwAgent](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_association) | resource |
|
||||
| [aws_ssm_parameter.CwAgentConfigLinux](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter) | resource |
|
||||
|
||||
## Inputs
|
||||
|
||||
No inputs.
|
||||
|
||||
## Outputs
|
||||
|
||||
No outputs.
|
||||
|
||||
---
|
||||
## Authorship
|
||||
This module was developed by UPDATE_THIS.
|
||||
Reference in New Issue
Block a user