Terraform resource: aws ecs cluster
Alternatives:
Examples
Official example
resource "aws_ecs_cluster" "foo" { name = "white-hart" setting { name = "containerInsights" value = "enabled" } }
Loggin encryption
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 } } } }
Related
aws_ecs_service
log_configuration
- Amazon ECS CloudWatch Container Insights
- aws_ecs_cluster_capacity_providers
See also
aws_ecs_cluster: name, containerInsights, execute_command_configuration
- Terraform ECS: module, resources:
aws_ecs_cluster, aws_ecs_service: task definition, aws_ecs_task_definition: container_definitions
Advertising: