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
| <aname="input_alb_security_group_id"></a> [alb\_security\_group\_id](#input\_alb\_security\_group\_id)| Security Group ID for the ALB |`string`| n/a | yes |
58
+
| <aname="input_assign_public_ip"></a> [assign\_public\_ip](#input\_assign\_public\_ip)| Whether or not to assign a public IP to the task |`bool`|`false`| no |
58
59
| <aname="input_azs"></a> [azs](#input\_azs)| Availability zones |`list(string)`| n/a | yes |
59
60
| <aname="input_cluster_arn"></a> [cluster\_arn](#input\_cluster\_arn)| ECS cluster to deploy into |`string`| n/a | yes |
| <aname="input_container_image"></a> [container\_image](#input\_container\_image)| Image tag of the Docker container to use for this service |`string`| n/a | yes |
61
+
| <aname="input_command"></a> [command](#input\_command)| Container startup command (Use null if container\_definitions is set) |`list(string)`| n/a | yes |
62
+
| <aname="input_container_definitions"></a> [container\_definitions](#input\_container\_definitions)| A list of valid container definitions provided as a single valid JSON document. By default, this module will generate a container definition for you. If you need to provide your own or have multiple, you can do so here. |`string`|`null`| no |
63
+
| <aname="input_container_image"></a> [container\_image](#input\_container\_image)| Image tag of the Docker container to use for this service (Use null if container\_definitions is set) |`string`| n/a | yes |
62
64
| <aname="input_container_port"></a> [container\_port](#input\_container\_port)| Port exposed by the container |`number`| n/a | yes |
63
-
| <aname="input_container_secrets"></a> [container\_secrets](#input\_container\_secrets)| The Secrets to Pass to the container. | <pre>list(object({<br> name = string<br> valueFrom = string<br> }))</pre> |`[]`| no |
65
+
| <aname="input_container_secrets"></a> [container\_secrets](#input\_container\_secrets)| The Secrets to Pass to the container. (Do not use if container\_definitions is set) | <pre>list(object({<br> name = string<br> valueFrom = string<br> }))</pre> |`[]`| no |
64
66
| <aname="input_db_instance_class"></a> [db\_instance\_class](#input\_db\_instance\_class)| Size of instances within the RDS cluster |`string`|`"db.t4g.medium"`| no |
65
67
| <aname="input_db_instance_count"></a> [db\_instance\_count](#input\_db\_instance\_count)| How many RDS instances to create |`number`|`1`| no |
66
68
| <aname="input_db_name"></a> [db\_name](#input\_db\_name)| Name of the postgres database to create, if creating an RDS cluster |`string`|`"main"`| no |
67
69
| <aname="input_ecs_desired_count"></a> [ecs\_desired\_count](#input\_ecs\_desired\_count)| How many tasks to launch in ECS service |`number`|`1`| no |
68
-
| <aname="input_environment_variables"></a> [environment\_variables](#input\_environment\_variables)| The environment variables to pass to the container. This is a list of maps. | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> |`[]`| no |
70
+
| <aname="input_environment_variables"></a> [environment\_variables](#input\_environment\_variables)| The environment variables to pass to the container. This is a list of maps. (Do not use if container\_definitions is set) | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> |`[]`| no |
69
71
| <aname="input_health_check_path"></a> [health\_check\_path](#input\_health\_check\_path)| Path to use for health checks |`string`| n/a | yes |
70
-
| <aname="input_host_port"></a> [host\_port](#input\_host\_port)| Port exposed by the host |`number`|`null`| no |
72
+
| <aname="input_host_port"></a> [host\_port](#input\_host\_port)| Port exposed by the host (Do not use if container\_definitions is set) |`number`|`null`| no |
71
73
| <aname="input_hostname"></a> [hostname](#input\_hostname)| Hostname to use for listener rule |`string`| n/a | yes |
72
74
| <aname="input_listener_arn"></a> [listener\_arn](#input\_listener\_arn)| ALB listener ARN to add listener rule to |`string`| n/a | yes |
75
+
| <aname="input_load_balancer_container_name"></a> [load\_balancer\_container\_name](#input\_load\_balancer\_container\_name)| Container name to use for load balancer target group forwarder |`string`| n/a | yes |
73
76
| <aname="input_service_name"></a> [service\_name](#input\_service\_name)| Service directory in the application git repo |`string`| n/a | yes |
74
77
| <aname="input_subnets"></a> [subnets](#input\_subnets)| List of subnet names the service will reside on. |`list(string)`| n/a | yes |
78
+
| <aname="input_task_cpu"></a> [task\_cpu](#input\_task\_cpu)| Task CPU |`number`|`1024`| no |
79
+
| <aname="input_task_memory"></a> [task\_memory](#input\_task\_memory)| Task memory |`number`|`2048`| no |
75
80
| <aname="input_use_database_cluster"></a> [use\_database\_cluster](#input\_use\_database\_cluster)| Whether or not we should create a DB cluster and inject the database connection string into the container |`bool`| n/a | yes |
76
-
| <aname="input_use_hostname"></a> [use\_hostname](#input\_use\_hostname)| Whether or not we should create a target group and listener to attach this service to a load balancer |`bool`| n/a | yes |
77
81
| <aname="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id)| VPC to deploy into |`string`| n/a | yes |
description="A list of valid container definitions provided as a single valid JSON document. By default, this module will generate a container definition for you. If you need to provide your own or have multiple, you can do so here."
117
+
default=null
118
+
}
119
+
120
+
variable"task_memory" {
121
+
type=number
122
+
description="Task memory"
123
+
default=2048
124
+
}
125
+
126
+
variable"task_cpu" {
127
+
type=number
128
+
description="Task CPU"
129
+
default=1024
130
+
}
131
+
132
+
variable"load_balancer_container_name" {
133
+
type=string
134
+
description="Container name to use for load balancer target group forwarder"
135
+
}
136
+
137
+
variable"assign_public_ip" {
138
+
type=bool
139
+
description="Whether or not to assign a public IP to the task"
0 commit comments