Difference between revisions of "Template:Aws ecs cluster with logging encryption"
Jump to navigation
Jump to search
(Created page with " resource "aws_ecs_cluster" "your_cluster" { name = "your-${var.env}-cluster" configuration { execute_command_configuration { kms_key_id = aws_kms_key...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | resource "aws_ecs_cluster" "your_cluster" { | + | resource "[[aws_ecs_cluster]]" "your_cluster" { |
name = "your-${var.env}-cluster" | name = "your-${var.env}-cluster" | ||
configuration { | configuration { | ||
− | execute_command_configuration { | + | [[execute_command_configuration]] { |
kms_key_id = [[aws_kms_key]].cw_kms_key.arn | kms_key_id = [[aws_kms_key]].cw_kms_key.arn | ||
− | [[logging]] = "OVERRIDE" | + | [[execute command configuration|logging]] = "[[OVERRIDE]]" |
− | log_configuration { | + | [[log_configuration]] { |
− | cloud_watch_encryption_enabled = true | + | [[cloud_watch_encryption_enabled]] = true |
− | cloud_watch_log_group_name = aws_cloudwatch_log_group.your_cw_group[[.name]] | + | cloud_watch_log_group_name = [[aws_cloudwatch_log_group]].your_cw_group[[.name]] |
} | } | ||
} | } | ||
} | } | ||
} | } |
Latest revision as of 10:48, 29 February 2024
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: