Difference between revisions of "Terraform resource: aws ecs cluster"
Jump to navigation
Jump to search
↑ https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>[[aws_ecs_cluster]]</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster</ref> | + | Terraform resource <code>[[aws_ecs_cluster]]</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster</ref> |
− | * [[name]] | + | * <code>[[name]]</code> |
− | + | * [[setting]]: <code>[[containerInsights]]</code> | |
− | + | * [[configuration]]: <code>[[execute_command_configuration]], [[kms_key_id]]</code> | |
Alternatives: | Alternatives: | ||
Line 8: | Line 8: | ||
* [[AWS CLI]]: <code>[[aws ecs create-cluster]]</code> | * [[AWS CLI]]: <code>[[aws ecs create-cluster]]</code> | ||
− | == Official example == | + | == Examples == |
+ | === Official example === | ||
resource "aws_ecs_cluster" "foo" { | resource "aws_ecs_cluster" "foo" { | ||
name = "white-hart" | name = "white-hart" | ||
Line 17: | Line 18: | ||
} | } | ||
} | } | ||
+ | |||
+ | === Logging encryption === | ||
+ | {{aws_ecs_cluster_with_logging_encryption}} | ||
== Related == | == Related == | ||
Line 22: | Line 26: | ||
* <code>[[log_configuration]]</code> | * <code>[[log_configuration]]</code> | ||
* [[Amazon ECS CloudWatch Container Insights]] | * [[Amazon ECS CloudWatch Container Insights]] | ||
+ | * <code>[[aws_ecs_cluster_capacity_providers]]</code> | ||
== See also == | == See also == |
Latest revision as of 09:50, 5 October 2023
Terraform resource aws_ecs_cluster
[1]
Alternatives:
Examples[edit]
Official example[edit]
resource "aws_ecs_cluster" "foo" { name = "white-hart" setting { name = "containerInsights" value = "enabled" } }
Logging encryption[edit]
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[edit]
aws_ecs_service
log_configuration
- Amazon ECS CloudWatch Container Insights
aws_ecs_cluster_capacity_providers
See also[edit]
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: