You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Replace remaining "yes|no" string vars with bools
* Replace cluster_instance_amis with singular cluster_instance_ami var
* Replace allowed_cidrs with default_ingress_cidrs
* Replace egress_cidrs with default_egress_cidrs
| region | The region into which to deploy the cluster | - | yes |
81
-
| vpc_id | The ID of the VPC into which to deploy the cluster | - | yes |
82
-
| subnet_ids | The IDs of the subnets for container instances | - | yes |
83
-
| component | The component this cluster will contain | - | yes |
84
-
| deployment_identifier | An identifier for this instantiation | - | yes |
85
-
| tags | A map of additional tags to add to all resources | - | no |
86
-
| cluster_name | The name of the cluster to create | default | yes |
87
-
| cluster_instance_ssh_public_key_path | The path to the public key to use for the container instances | - | yes |
88
-
| cluster_instance_type | The instance type of the container instances | t2.medium | yes |
89
-
| cluster_instance_root_block_device_size | The size in GB of the root block device on cluster instances | 30 | yes |
90
-
| cluster_instance_root_block_device_path | Path of the instance root block storage volume | /dev/xvda | yes |
91
-
| cluster_instance_root_block_device_type | The type of the root block device on cluster instances ('standard', 'gp2', or 'io1') | standard | yes |
92
-
| cluster_instance_user_data_template | The contents of a template for container instance user data | see user-data | no |
93
-
| cluster_instance_amis | A map of regions to AMIs for the container instances | ECS optimised AMIs | yes |
94
-
| cluster_instance_iam_policy_contents | The contents of the cluster instance IAM policy | see policies | no |
95
-
| cluster_service_iam_policy_contents | The contents of the cluster service IAM policy | see policies | no |
96
-
| cluster_minimum_size | The minimum size of the ECS cluster | 1 | yes |
97
-
| cluster_maximum_size | The maximum size of the ECS cluster | 10 | yes |
98
-
| cluster_desired_capacity | The desired capacity of the ECS cluster | 3 | yes |
99
-
| associate_public_ip_addresses | Whether or not to associate public IP addresses with ECS container instances ("yes" or "no") | false | no |
100
-
| include_default_ingress_rule | Whether or not to include the default ingress rule on the ECS container instances security group ("yes" or "no") | true | no |
101
-
| include_default_egress_rule | Whether or not to include the default egress rule on the ECS container instances security group ("yes" or "no") | true | no |
102
-
| allowed_cidrs | The CIDRs allowed access to containers |["10.0.0.0/8"]| if include_default_ingress_rule is "yes" |
103
-
| egress_cidrs | The CIDRs accessible from containers |["0.0.0.0/0"]| if include_default_egress_rule is "yes" |
104
-
| security_groups | The list of security group IDs to associate with the cluster in addition to the default security group |[]| no |
105
-
| cluster_log_group_retention | The number of days logs will be retained in the CloudWatch log group of the cluster (0 = unlimited) | 0 | no |
106
-
| enable_detailed_monitoring | Enable detailed monitoring of EC2 instance(s) | true | no
| region | The region into which to deploy the cluster | - | yes |
81
+
| vpc_id | The ID of the VPC into which to deploy the cluster | - | yes |
82
+
| subnet_ids | The IDs of the subnets for container instances | - | yes |
83
+
| component | The component this cluster will contain | - | yes |
84
+
| deployment_identifier | An identifier for this instantiation | - | yes |
85
+
| tags | A map of additional tags to add to all resources | - | no |
86
+
| cluster_name | The name of the cluster to create | default | yes |
87
+
| cluster_instance_ssh_public_key_path | The path to the public key to use for the container instances | - | yes |
88
+
| cluster_instance_type | The instance type of the container instances | t2.medium | yes |
89
+
| cluster_instance_root_block_device_size | The size in GB of the root block device on cluster instances | 30 | yes |
90
+
| cluster_instance_root_block_device_path | Path of the instance root block storage volume | /dev/xvda | yes |
91
+
| cluster_instance_root_block_device_type | The type of the root block device on cluster instances ('standard', 'gp2', or 'io1') | standard | yes |
92
+
| cluster_instance_user_data_template | The contents of a template for container instance user data | see user-data | no |
93
+
| cluster_instance_ami | AMI for the container instances. | ECS optimised AMI | yes |
94
+
| cluster_instance_iam_policy_contents | The contents of the cluster instance IAM policy | see policies | no |
95
+
| cluster_service_iam_policy_contents | The contents of the cluster service IAM policy | see policies | no |
96
+
| cluster_minimum_size | The minimum size of the ECS cluster | 1 | yes |
97
+
| cluster_maximum_size | The maximum size of the ECS cluster | 10 | yes |
98
+
| cluster_desired_capacity | The desired capacity of the ECS cluster | 3 | yes |
99
+
| associate_public_ip_addresses | Whether or not to associate public IP addresses with ECS container instances | false | no |
100
+
| include_default_ingress_rule | Whether or not to include the default ingress rule on the ECS container instances security group | true | no |
101
+
| include_default_egress_rule | Whether or not to include the default egress rule on the ECS container instances security group | true | no |
102
+
| default_ingress_cidrs | The CIDRs allowed access to containers |["10.0.0.0/8"]| if include_default_ingress_rule |
103
+
| default_egress_cidrs | The CIDRs accessible from containers |["0.0.0.0/0"]| if include_default_egress_rule |
104
+
| security_groups | The list of security group IDs to associate with the cluster in addition to the default security group |[]| no |
105
+
| cluster_log_group_retention | The number of days logs will be retained in the CloudWatch log group of the cluster (0 = unlimited) | 0 | no |
106
+
| enable_detailed_monitoring | Enable detailed monitoring of EC2 instance(s) | true | no |
107
+
| enable_container_insights | Whether or not to enable container insights on the ECS cluster. | false | no |
108
+
| protect_cluster_instances_from_scale_in | Whether or not to protect cluster instances in the autoscaling group from scale in. | false | no |
109
+
| include_asg_capacity_provider | Whether or not to add the created ASG as a capacity provider for the ECS cluster. | false | no |
110
+
| asg_capacity_provider_manage_termination_protection | Whether or not to allow ECS to manage termination protection for the ASG capacity provider. | true | no |
111
+
| asg_capacity_provider_manage_scaling | Whether or not to allow ECS to manage scaling for the ASG capacity provider. | true | no |
112
+
| asg_capacity_provider_minimum_scaling_step_size | The minimum scaling step size for ECS managed scaling of the ASG capacity provider. | 1 | no |
113
+
| asg_capacity_provider_maximum_scaling_step_size | The maximum scaling step size for ECS managed scaling of the ASG capacity provider. | 1000 | no |
114
+
| asg_capacity_provider_target_capacity | The target capacity, as a percentage from 1 to 100, for the ASG capacity provider. | 100 | no |
115
+
| cluster_instance_enable_ebs_volume_encryption | Determines whether encryption is enabled on the EBS volume. | true | no |
116
+
| cluster_instance_ebs_volume_kms_key_id | KMS key to use for encryption of the EBS volume when enabled. | alias/aws/ebs | no |
107
117
108
118
Notes:
109
119
110
120
* By default, the latest available Amazon Linux 2 AMI is used.
111
121
* For Amazon Linux 1 AMIs use version <= 0.6.0 of this module for terraform 0.11
112
122
or version = 1.0.0 for terraform 0.12.
113
-
* When a specific AMI is provided via `cluster_instance_amis` (a map of region
114
-
to AMI ID), only the root block device can be customised, using the
123
+
* When a specific AMI is provided via `cluster_instance_ami`, only the root
0 commit comments