description |
---|
Periodically this server may need to be rebuilt, due to AMI deprecations, or other factors. |
- TERRAFORM APPLY: Create new EC2 Security group (reference ALB security group)
- TERRAFORM APPLY: Create new shared-services-httpd EC2 instance
- SCRIPT: (USER DATA) : install Apache2 stuff, crontab, etc..
- SCRIPT: Update apache2 config:
- Populate proxy config from S3 bucket
- Restart proxy service
- SCRIPT: Add new EC2 (created in step 1) as a target to the existing ALB Target Group (group will now have 2 targets)
- SCRIPT: Remove old EC2 as a target from ALB Target Group (now there's only 1 target)
- TERRAFORM DESTROY: Destroy security group
- TERRAFORM DESTROY: Destroy old shared-services-httpd EC2