Maintaining multiple runtime environments
In a real-world scenario, you'll need multiple environments to avoid pushing broken features or major bugs to a sandbox or staging environment (or worse, a production environment) before validating them.
You can create an EC2 instance to host the staging environment by running a new EC2 instance based on the sandbox environment we created in previous chapters:
- Select the sandbox instance and click on Actions from the action bar. Then, click on Launch more like this from the Image and template drop-down list:
This option will automatically populate the Amazon EC2 launch wizard with configuration details from the selected instance.
- Update the
Name
tag value tostaging
and click on Launch to provision the instance: - Once the instance is up and running, update CircleCI so that it tags the Docker image...