MESH-Research / commons

Humanities Commons WordPress
https://hcommons.org
MIT License
3 stars 0 forks source link

Downgrade ECS wordpress dev #932

Closed tzouris closed 3 months ago

tzouris commented 3 months ago

From m7g.4xlarge to m7g.2xlarge. I tried m7g.large but the system resources were insufficient.

tzouris commented 3 months ago

Edit the auto-scaling group and create new version of the launch template. Make the new version default. Update the ASG with the new launch template version. Stop the task. Decrease the number of desired instances to 0. Restore the number of desired instances to 1. The internal IP will change since a new EC2 instance will be created. The public IP will also change if it's not an Elastic IP. If an Elastic IP is already in use, it has to be attached to the new EC2 instance. The Security Groups attached to the instance have to be updated with the new internal IP.