Skip to main content
After applying the root module, these outputs are available:
output "cluster_arn" {
  value = module.ecs.cluster_arn
}

Cluster Outputs

cluster_arn
string
ARN that identifies the ECS cluster.
cluster_id
string
ID that identifies the ECS cluster.
cluster_name
string
Name that identifies the ECS cluster.
cluster_capacity_providers
map
Map of cluster capacity providers attributes.

Capacity Providers

capacity_providers
map
Map of autoscaling capacity providers created and their attributes.

Services

services
map
Map of services created and their attributes. Each key corresponds to a service name provided in var.services. The value contains all service-level outputs including ARN, name, task definition ARN, and IAM role details.

CloudWatch Logging

cloudwatch_log_group_name
string
Name of the CloudWatch log group created for the cluster.
cloudwatch_log_group_arn
string
ARN of the CloudWatch log group created for the cluster.

IAM — Infrastructure Role

infrastructure_iam_role_arn
string
ARN of the infrastructure IAM role.
infrastructure_iam_role_name
string
Name of the infrastructure IAM role.
infrastructure_iam_role_unique_id
string
Stable and unique string identifying the infrastructure IAM role.

IAM — Task Execution Role

task_exec_iam_role_arn
string
ARN of the task execution IAM role (cluster-level, when create_task_exec_iam_role = true).
task_exec_iam_role_name
string
Name of the task execution IAM role.
task_exec_iam_role_unique_id
string
Stable and unique string identifying the task execution IAM role.

IAM — Node Role (Managed Instances)

node_iam_instance_profile_arn
string
ARN of the IAM instance profile for ECS Managed Instances nodes.
node_iam_instance_profile_id
string
ID of the IAM instance profile.
node_iam_instance_profile_unique
string
Stable and unique string identifying the IAM instance profile.
node_iam_role_arn
string
ARN of the node IAM role.
node_iam_role_name
string
Name of the node IAM role.
node_iam_role_unique_id
string
Stable and unique string identifying the node IAM role.

Build docs developers (and LLMs) love