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
Currently, as provided, one cannot do rolling deployments on the ECS-EC2 module.
This is due to the hostPort being configured (port 80) and not allowing AWS/Docker magic to occur.
The fix is simple. Update hostPort: 0 instead of hostPort: 80 on both task definitions.
Doing this one update allowed for a smooth rolling update to occur.
Verified by monitoring the ECS Cluster -> Services -> Event logs and checking which task definitions were active.
Example Error:
service [alpha-retool-main-service](https://us-east-1.console.aws.amazon.com/ecs/home?region=us-east-1#/clusters/alpha-retool-ecs/services/alpha-retool-main-service)
was unable to place a task because no container instance met all of its requirements.
The closest matching container-instance is already using a port required by your task. For more information, see the [Troubleshooting section]
(http://docs.aws.amazon.com/AmazonECS/latest/developerguide/troubleshooting.html).
The text was updated successfully, but these errors were encountered:
You will also need to update SG ingress rules for the EC2 instance(s) to allowed the ALB traffic to occur over the ephemeral port range.
With this, you can delete the the Port 80 & 443 ingress rules for the EC2 instance. ALB should receive incoming HTTP(S) traffic and manage the SSL connection via ACM certs.
Currently, as provided, one cannot do rolling deployments on the ECS-EC2 module.
This is due to the hostPort being configured (port 80) and not allowing AWS/Docker magic to occur.
The fix is simple. Update
hostPort: 0
instead ofhostPort: 80
on both task definitions.Doing this one update allowed for a smooth rolling update to occur.
Verified by monitoring the ECS Cluster -> Services -> Event logs and checking which task definitions were active.
Example Error:
The text was updated successfully, but these errors were encountered: