Contact Us | Stratusphere FinOps | StratusGrid Home | Blog
GitHub: StratusGrid/terraform-aws-cloudwatch-alarms
This module will create multiple rules to cover the security alarms of a Well Architected Review.
# This example skips the kms_key variable as it defaults to the key provided by Data
module "terraform-aws-cloudwatch-alarms" {
source = "StratusGrid/cloudwatch-alarms/aws"
version = "<insert relevant version>"
log_group_name = "${var.name_prefix}-name-to-use${local.name_suffix}"
input_tags = merge(local.common_tags, {})
}
# This example specifies a key to be used.
module "terraform-aws-cloudwatch-alarms" {
source = "StratusGrid/cloudwatch-alarms/aws"
version = "<insert relevant version>"
log_group_name = "${var.name_prefix}-name-to-use${local.name_suffix}"
create_kms_key = false
kms_key_id = "arn:aws:kms:region:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
input_tags = merge(local.common_tags, {})
}
Name | Version |
---|---|
terraform | >= 1.0 |
aws | >= 3.75 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
create_kms_key | Boolean to define if KMS key should be created or not | bool |
true |
no |
input_tags | Map of tags to apply to resources | map(string) |
{ |
no |
kms_key_id | ID of the key to be used by Cloud Trail to encrypt the logs | string |
"" |
no |
log_group_name | Name of the CloudWatch Log Group where the events are being recorded | string |
n/a | yes |
name_prefix | Name to prepend to all resource names within module | string |
n/a | yes |
name_suffix | Name to append to all resource names within module | string |
"" |
no |
No outputs.
Note, manual changes to the README will be overwritten when the documentation is updated. To update the documentation, run terraform-docs -c .config/.terraform-docs.yml