cloudposse/ecs-alb-service-task

Terraform module which implements an ECS service which exposes a web service via ALB.

Terraform module
AWS
available
Placeholder. This template is not in the library yet. Deploy opens the platform so you can start from your own repository; tell us there if you want this one.
Downloads
5.0M
Version
1.0.0
Published
2026-08-18
License
Apache-2.0
Maintainer
cloudposse

About

Terraform module which implements an ECS service which exposes a web service via ALB.

Maintained by cloudposse on the Terraform Registry. Latest version 1.0.0, 5.0M downloads. Requires providers: aws >= 6.4.

Deploy creates a StackGuardian workflow from the module's GitHub repository, pinned to this version. You set the inputs, see the plan, then approve the apply.

Use cases

  • Load balancers, certificates and DNS wired up in one reviewed change.
  • Edge protection applied the same way on every public endpoint.
  • Security groups and firewall rules with an owner and a reason.

Inputs

Required inputs:

  • container_definition_json — string
  • ecs_cluster_arn — string
  • vpc_id — string

87 inputs in total. The full list, with defaults and descriptions, is on the registry page.

What it creates

  • aws_ecs_service × 4
  • aws_ecs_task_definition
  • aws_iam_role × 4
  • aws_iam_role_policy × 3
  • aws_iam_role_policy_attachment × 3
  • aws_security_group
  • aws_security_group_rule × 4

How it runs on StackGuardian

Terraform workflow from the module's GitHub repository: plan, policy check, approval, then apply.

Plan
Policy check
Approval
Apply

Approvals happen in StackGuardian. An agent can never approve its own run. Every run keeps its plan, policy results and approver in the audit log.

Pick a template. Deploy it with guardrails.