@@ -17,16 +17,16 @@ The ECS cluster consists of:
17
17
instances
18
18
* An SSH key to connect to the ECS container instances
19
19
* 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
22
22
* 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
27
27
* 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
30
30
* A CloudWatch log group
31
31
32
32
![ 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:
39
39
40
40
``` hcl-terraform
41
41
module "ecs_cluster" {
42
- source = "infrablocks/ecs-cluster/aws"
42
+ source = "infrablocks/ecs-cluster/aws"
43
43
version = "5.0.0"
44
44
45
- region = "eu-west-2"
46
- vpc_id = "vpc-fb7dc365"
45
+ region = "eu-west-2"
46
+ vpc_id = "vpc-fb7dc365"
47
47
subnet_ids = [
48
- "subnet-eb32c271",
49
- "subnet-64872d1f"
48
+ "subnet-eb32c271",
49
+ "subnet-64872d1f"
50
50
]
51
51
52
- component = "important-component"
52
+ component = "important-component"
53
53
deployment_identifier = "production"
54
54
55
- cluster_name = "services"
55
+ cluster_name = "services"
56
56
cluster_instance_ssh_public_key_path = "~/.ssh/id_rsa.pub"
57
- cluster_instance_type = "t3.small"
57
+ cluster_instance_type = "t3.small"
58
58
59
- cluster_minimum_size = 2
60
- cluster_maximum_size = 10
59
+ cluster_minimum_size = 2
60
+ cluster_maximum_size = 10
61
61
cluster_desired_capacity = 4
62
62
}
63
63
```
@@ -91,6 +91,7 @@ for more details.
91
91
| cluster_instance_root_block_device_type | The type of the root block device on cluster instances ('standard', 'gp2', or 'io1') | standard | yes |
92
92
| cluster_instance_user_data_template | The contents of a template for container instance user data | see user-data | no |
93
93
| 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 |
94
95
| cluster_instance_iam_policy_contents | The contents of the cluster instance IAM policy | see policies | no |
95
96
| cluster_service_iam_policy_contents | The contents of the cluster service IAM policy | see policies | no |
96
97
| cluster_minimum_size | The minimum size of the ECS cluster | 1 | yes |
@@ -202,7 +203,6 @@ Terraform 1.0.
202
203
* logs: ListTagsLogGroup
203
204
* logs: DeleteLogGroup
204
205
205
-
206
206
Development
207
207
-----------
208
208
0 commit comments