Deploying and testing ECS task networking
You are now ready to deploy your changes and verify that ECS task networking is working correctly. If you run the aws cloudformation deploy
command, the following should happen:
- A new revision of the application task definition will be created, which is configured for ECS task networking.
- The ECS service configuration will detect the changes and attempt to deploy the new revision, along with the ECS service configuration changes. ECS will dynamically attach a new ENI to the private subnet and allocate this ENI to a new ECS task for the
ApplicationService
resource.
Once deployment is complete, you should verify your application is still working and once you have done this, you can browse to the ECS console, click on your ECS service, and select the current task running for the service.
The following screenshot shows the ECS task screen:
ECS task in task networking mode
As you can see, the network mode of the task is now awsvpc
, and an ENI has been dynamically...