compliance.tf
Terraform Modules for AWSCompute & Containers

Terraform AWS ECS

ECS clusters, services, and task definitions with IAM roles, logging, load balancer integration, service discovery, capacity providers, and Fargate or EC2 runtime settings.

Controls enforced

These compliance controls are checked at terraform plan time.

Quick start

module "ecs" {
  source  = "pcidss.compliance.tf/terraform-aws-modules/ecs/aws"
  version = ">= 6.0.0"

  # ... your arguments here
}
module "ecs" {
  source  = "acscessentialeight.compliance.tf/terraform-aws-modules/ecs/aws"
  version = ">= 6.0.0"

  # ... your arguments here
}
module "ecs" {
  source  = "nistcsf.compliance.tf/terraform-aws-modules/ecs/aws"
  version = ">= 6.0.0"

  # ... your arguments here
}
module "ecs" {
  source  = "soc2.compliance.tf/terraform-aws-modules/ecs/aws"
  version = ">= 6.0.0"

  # ... your arguments here
}

View this module on the compliance.tf registry — versions, inputs, and outputs →

See the Get Started guide and Registry Endpoints for details on how to customize the module for your requirements.

Migration from upstream

Already using terraform-aws-modules? Change only the source URL:

module "ecs" {
  source  = "terraform-aws-modules/ecs/aws"
  version = ">= 6.0.0"
}
module "ecs" {
  source  = "soc2.compliance.tf/terraform-aws-modules/ecs/aws"
  version = ">= 6.0.0"
}

Same arguments. Same outputs. Controls are checked at terraform plan. See the Migration Guide for step-by-step instructions.

Reversibility

No lock-in. Switch back by reverting the source URL:

module "ecs" {
  source  = "terraform-aws-modules/ecs/aws"
}

Run terraform init -upgrade. Terraform state is unchanged — same resource addresses, same provider, no compliance.tf-specific resources. Controls you already applied remain in AWS.

Mapped compliance frameworks

1.4.5 The disclosure of internal IP addresses and routing information is limited to only authorized parties

1.4.5: Network connections between trusted and untrusted networks are controlled.

6.3.3: All system components are protected from known vulnerabilities by installing applicable security patches/updates

6.3.3: Security vulnerabilities are identified and addressed.

CC6.6: The entity implements logical access security measures to protect against threats from sources outside its system boundaries.

Framework coverage

Which controls from this module are active under each framework endpoint.

enforced by default · not activated by this endpoint

Known Terraform limitations

Separately from the controls above, some things people ask this module for cannot be implemented by any module in any registry - they are limits of Terraform itself. Known limitations for this module lists the recurring ones: what causes each, the native workaround in full, and - where one exists - the opt-in Operational Rule that removes the need for a fork.

On this page

Ask AI about this

Help improve this page