Skip to content

geekcell/terraform-aws-ecs-cluster

Repository files navigation

Geek Cell GmbH

Code Quality

License GitHub release (latest tag) Release Validate Lint

Security

Infrastructure Tests

Cloud

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Container

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Data protection

Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests Infrastructure Tests

Terraform AWS ECS Cluster

This Terraform module provides a preconfigured solution for setting up an Amazon Elastic Container Service (ECS) Cluster with enabled Container Insights, logging, and advanced monitoring. With this module, you can easily launch, manage, and scale your Docker containers and applications in the cloud while having complete visibility into their performance and health.

Inputs

Name Description Type Default Required
enable_container_insights Enable CloudWatch Container Insights for the cluster. bool true no
encrypt_execute_command_session Encrypt execute command session for the cluster. bool false no
logging_execute_command_session Log execute command session for the cluster. string "DEFAULT" no
name Name of the ECS cluster. string n/a yes
tags Tags to add to the ECS cluster. map(any) {} no

Outputs

Name Description
arn The ARN of the ECS cluster.
command_session_cloudwatch_log_group_arn The ARN of the CloudWatch log group used to store the command session.
command_session_kms_arn The ARN of the KMS key used to encrypt the command session.
name The name of the ECS cluster.

Providers

Name Version
aws >= 4.36

Resources

  • resource.aws_cloudwatch_log_group.container_insights (main.tf#62)
  • resource.aws_cloudwatch_log_group.main (main.tf#55)
  • resource.aws_ecs_cluster.main (main.tf#10)

Examples

Basic Example

module "basic-example" {
  source = "../../"

  name = var.name
}