Resource Creation Controls
Determines whether resources will be created (affects all resources). Default:
true.Cluster Configuration
Name of the ECS cluster (up to 255 letters, numbers, hyphens, and underscores). Default:
"".The execute command configuration for the cluster.Default:
{ execute_command_configuration = { log_configuration = { cloud_watch_log_group_name = "placeholder" } } }Configures a default Service Connect namespace for the cluster.Default:
null.List of configuration blocks with cluster settings. Used to enable CloudWatch Container Insights. Default:
[{ name = "containerInsights", value = "enabled" }].A map of additional tags to add to the cluster. Default:
{}.Capacity Providers
List of capacity provider names to associate with the ECS cluster. Note: any capacity providers created by this module will be automatically added. Default:
[].Map of default capacity provider strategy definitions to use for the cluster.Default:
null.Map of capacity provider definitions to create for the cluster.Default:
{}.Services
Map of service definitions to create. Each key is the service name. All attributes of the service module are supported within each service object.Default:
{}.CloudWatch Logging
Determines whether a log group is created by this module for cluster logs. Default:
true.Custom name of CloudWatch Log Group for ECS cluster. Default:
null.Number of days to retain log events. Default:
90.KMS Key ARN for encrypting the log group. Default:
null.Log class of the log group. Possible values:
STANDARD or INFREQUENT_ACCESS. Default: null.Additional tags to add to the log group. Default:
{}.IAM — Infrastructure Role
Determines whether the ECS infrastructure IAM role should be created. Default:
true.Name to use on the infrastructure IAM role. Default:
null.Use the role name as a prefix. Default:
true.IAM role path. Default:
null.Description of the infrastructure IAM role. Default:
null.ARN of the permissions boundary policy. Default:
null.IAM policy documents merged into the role policy. Statements must have unique
sids. Default: [].IAM policy documents merged into the role policy. Statements with non-blank
sids override matching statements. Default: [].Map of IAM policy statements for custom permission usage. Default:
null.Additional tags for the infrastructure IAM role. Default:
{}.IAM — Task Execution Role
Determines whether the ECS task execution IAM role should be created at the cluster level. Default:
false.Set to
true when you want a single shared task execution role across all services in the cluster. The service module creates its own by default.Name for the task execution IAM role. Default:
null.Use the role name as a prefix. Default:
true.IAM role path. Default:
null.Description of the task execution IAM role. Default:
null.ARN of the permissions boundary policy. Default:
null.Map of IAM role policy ARNs to attach to the role. Default:
{}.Additional tags for the task execution IAM role. Default:
{}.Determines whether the task execution IAM policy should be created. Includes
AmazonECSTaskExecutionRolePolicy permissions plus Secrets Manager and SSM access. Default: true.List of SecretsManager secret ARNs the task execution role can read. Default:
[].List of SSM parameter ARNs the task execution role can read. Default:
[].Map of IAM policy statements for custom task execution role permissions. Default:
null.IAM — Node Role (Managed Instances)
Determines whether an IAM instance profile is created. Default:
true.Name for the node IAM role/instance profile. Default:
null.Use the role name as a prefix. Default:
true.IAM role/instance profile path. Default:
null.Description of the node IAM role. Default:
"ECS Managed Instances node IAM role".ARN of the permissions boundary policy. Default:
null.Additional policies to attach to the node IAM role. Default:
{}.IAM policy documents merged into the node role policy. Default:
[].IAM policy documents that override matching statements. Default:
[].Map of IAM policy statements for the node role. Default:
null.Additional tags for the node IAM role. Default:
{}.Security Group
Determines if a security group is created. Default:
true.Name for the security group. Default:
null.Use the security group name as a prefix. Default:
true.Description of the security group. Default:
null.Security group ingress rules. Default:
{}.Security group egress rules. Default includes allow-all IPv4 and IPv6 egress.
Additional tags for the security group. Default:
{}.VPC ID where the security group will be created. Default:
null.Misc
AWS region where resources will be managed. Defaults to the provider region. Default:
null.Map of tags to add to all resources. Default:
{}.Deprecated — will be removed in v8.0. Disables the default postfix added to resource names and descriptions in v7.0. Default:
false.
