cloudwatch-log-group
aws-ia/cloudwatch-log-group/aws
AWS Cloudwatch Module This module creates an AWS Cloudwatch log group along with the corresponding IAM permissions. Requirements | Name | Version | |------|---------| | terraform | >= 0.15.0 | | aws | >= 3.72.0 | Providers | Name | Version | |------|---------| | aws | 4.4.0 | Modules No modules. Resources | Name | Type | |------|------| | aws_cloudwatch_log_group.main | resource | | aws_iam_policy.main | resource | | aws_iam_role.main | resource | | aws_iam_role_policy_attachment.main | resource | | aws_iam_policy_document.main | data source | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | aws\_service\_principal | The name of the service being logged. 'Service Principal' is a special AWS identity that represents a service or
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name of logs and supporting resources. | required |
| tags | map(string) | tags to be added to sub resources | required |
| kms_key_id | string | Encryption for KMS key. | required |
| aws_service_principal | string | The name of the service being logged. 'Service Principal' is a special AWS ident | required |
| retention_in_days | number | Specifies the number of days you want to retain log events in the specified log | 0 |
sid_service_id — The service being targettediam_role — IAM role for cloudwatch log group.log_group — Log group resource output.