cloudwatch-log-group

aws-ia/cloudwatch-log-group/aws

Terraform Module HCL AWS ✓ Verified
Install
module "cloudwatch-log-group" {
source = "aws-ia/cloudwatch-log-group/aws"
version = "1.0.1"
}
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (5)
NameTypeDescriptionDefault
namestringName of logs and supporting resources. required
tagsmap(string)tags to be added to sub resources required
kms_key_idstringEncryption for KMS key. required
aws_service_principalstringThe name of the service being logged. 'Service Principal' is a special AWS ident required
retention_in_daysnumberSpecifies the number of days you want to retain log events in the specified log 0
Outputs (3)
sid_service_id — The service being targetted
iam_role — IAM role for cloudwatch log group.
log_group — Log group resource output.
Resources (4)
aws_cloudwatch_log_groupaws_iam_policyaws_iam_roleaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars3
Forks6
Total downloads1.3M
Inputs5
Outputs3
Resources4
Examples1
LicenseApache-2.0
Namespaceaws-ia
Updated