@@ -17,16 +17,16 @@ The ECS cluster consists of:
1717 instances
1818* An SSH key to connect to the ECS container instances
1919* A security group for the container instances optionally allowing:
20- * Outbound internet access for all containers
21- * Inbound TCP access on any port from the VPC network
20+ * Outbound internet access for all containers
21+ * Inbound TCP access on any port from the VPC network
2222* An IAM role and policy for the container instances allowing:
23- * ECS interactions
24- * ECR image pulls
25- * S3 object fetches
26- * Logging to cloudwatch
23+ * ECS interactions
24+ * ECR image pulls
25+ * S3 object fetches
26+ * Logging to cloudwatch
2727* An IAM role and policy for ECS services allowing:
28- * Elastic load balancer registration / deregistration
29- * EC2 describe actions and security group ingress rule creation
28+ * Elastic load balancer registration / deregistration
29+ * EC2 describe actions and security group ingress rule creation
3030* A CloudWatch log group
3131
3232![ Diagram of infrastructure managed by this module] ( https://raw.githubusercontent.com/infrablocks/terraform-aws-ecs-cluster/main/docs/architecture.png )
@@ -39,25 +39,25 @@ configuration:
3939
4040``` hcl-terraform
4141module "ecs_cluster" {
42- source = "infrablocks/ecs-cluster/aws"
42+ source = "infrablocks/ecs-cluster/aws"
4343 version = "5.0.0"
4444
45- region = "eu-west-2"
46- vpc_id = "vpc-fb7dc365"
45+ region = "eu-west-2"
46+ vpc_id = "vpc-fb7dc365"
4747 subnet_ids = [
48- "subnet-eb32c271",
49- "subnet-64872d1f"
48+ "subnet-eb32c271",
49+ "subnet-64872d1f"
5050 ]
5151
52- component = "important-component"
52+ component = "important-component"
5353 deployment_identifier = "production"
5454
55- cluster_name = "services"
55+ cluster_name = "services"
5656 cluster_instance_ssh_public_key_path = "~/.ssh/id_rsa.pub"
57- cluster_instance_type = "t3.small"
57+ cluster_instance_type = "t3.small"
5858
59- cluster_minimum_size = 2
60- cluster_maximum_size = 10
59+ cluster_minimum_size = 2
60+ cluster_maximum_size = 10
6161 cluster_desired_capacity = 4
6262}
6363```
@@ -91,6 +91,7 @@ for more details.
9191| cluster_instance_root_block_device_type | The type of the root block device on cluster instances ('standard', 'gp2', or 'io1') | standard | yes |
9292| cluster_instance_user_data_template | The contents of a template for container instance user data | see user-data | no |
9393| cluster_instance_ami | AMI for the container instances | ECS optimised AMI | yes |
94+ | cluster_instance_metadata_options | A map of metadata options for cluster instances. | - | no |
9495| cluster_instance_iam_policy_contents | The contents of the cluster instance IAM policy | see policies | no |
9596| cluster_service_iam_policy_contents | The contents of the cluster service IAM policy | see policies | no |
9697| cluster_minimum_size | The minimum size of the ECS cluster | 1 | yes |
@@ -202,7 +203,6 @@ Terraform 1.0.
202203* logs: ListTagsLogGroup
203204* logs: DeleteLogGroup
204205
205-
206206Development
207207-----------
208208
0 commit comments