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
to container_ports respectively, as an array of ports.
This would introduce breaking changes so we'd need another major version release if we decide to do this.
We can omit host_ports and should actually refactor the module to not use host_ports after this due to this information from the ECS Task Definition docs in AWS
If you specify a containerPortRange, leave this field empty and the value of the hostPort is set as follows:
For containers in a task with the awsvpc network mode, the hostPort is set to the same value as the containerPort. This is a static mapping strategy.
For containers in a task with the bridge network mode, the Amazon ECS agent finds open ports on the host and automatically binds them to the container ports. This is a dynamic mapping strategy.
If you use containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort.
We have the network mode hardcoded to awsvpc
Acceptance Criteria:
Refactor use of ports to omit host_port/s
Introduce container_ports variable as array of ports
Write unit tests to validate container_ports types and port number validity for fast failures using a combination of variable input validation and new tf unit tests
The text was updated successfully, but these errors were encountered:
Add support for multiple ports on container
Description:
We probably want to enable a range of ports to be exposed from the container. By changing
terraform-aws-ecs-service/variables.tf
Lines 69 to 72 in cc9e62e
to
container_ports
respectively, as an array of ports.This would introduce breaking changes so we'd need another major version release if we decide to do this.
We can omit
host_ports
and should actually refactor the module to not use host_ports after this due to this information from the ECS Task Definition docs in AWSWe have the network mode hardcoded to
awsvpc
Acceptance Criteria:
host_port/s
container_ports
variable as array of portsThe text was updated successfully, but these errors were encountered: