Difference between revisions of "Terraform resource: aws cloudwatch log group"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
 
   }
 
   }
 
  }
 
  }
 +
 +
== Related resources ==
 +
{{aws ecs cluster with logging encryption}}
  
 
== Errors ==
 
== Errors ==

Revision as of 11:25, 19 February 2024

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group

aws_cloudwatch_log_group

Arguments

Examples

resource "aws_cloudwatch_log_group" "yada" {
  name = "Yada" 

  tags = {
    Environment = "production"
    Application = "serviceA"
  }
}

Related resources

resource "aws_ecs_cluster" "your_cluster" {
  name = "your-${var.env}-cluster"

  configuration {
    execute_command_configuration {
      kms_key_id = aws_kms_key.cw_kms_key.arn
      logging    = "OVERRIDE" 

      log_configuration {
        cloud_watch_encryption_enabled = true
        cloud_watch_log_group_name     = aws_cloudwatch_log_group.your_cw_group.name
      }
    }
  }
}

Errors


Related

See also

Advertising: