Difference between revisions of "Cloud watch encryption enabled"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} log_configuration")
 
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
  [[log_configuration]]
 
  [[log_configuration]]
 +
 +
 +
{{aws_ecs_cluster_with_logging_encryption}}
 +
 +
 +
* {{aws_ecs_cluster}}

Latest revision as of 10:49, 29 February 2024

log_configuration


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
      }
    }
  }
}


Advertising: