githubEdit

How to Change VPC Settings for an ECS Service

You can configure your service to run in a different VPC by modifying its infrastructure settings in the AWS Console. This is useful when you want to isolate certain services in their own network environment. Changing the VPC for an ECS Service Navigate to your ECS cluster in the AWS Console Select the service you want to adjust VPC settings for Click the orange "Update Service" in the top right hand corner Expand "Networking" In the drop down menus select the VPC you want to associate with the service For the subnets mimic what existed previously (eg if all private use private) Remove default SG and use "duplo-allhosts" and "external-elb" if applicable Save the update and watch the service spin up a new task After changing the VPC, verify that your ECS tasks are running in the correct VPC by checking the IP addresses of the running tasks. The IP addresses should match the CIDR range of your intended VPC. If you need assistance with VPC configuration, our support team can help guide you through the process in a screen-sharing session.

Last updated

Was this helpful?