Clone a Stack in AWS OpsWorks and Update DNS
AWS OpsWorks
To implement this technique in AWS OpsWorks, bring up the blue environment/stack with the current version of the application.
AWS OpsWorks stack
Next, create the green environment/stack with the newer version of application. At this point, the green environment is not receiving any traffic. If Elastic Load Balancing needs to be initialized, you can do that at this time.
Clone stack to create green environment
When it’s time to promote the green environment/stack into production, update DNS records to point to the green environment/stack’s load balancer. You can also do this DNS flip gradually by using the Amazon Route 53 weighted routing policy. This process involves updating DNS, so be aware of DNS issues discussed in the technique in the Update DNS Routing with Amazon Route 53 section.
Decommission blue stack