Production: Create Staging Stack
Objective
- Create separate environments for staging.
Steps
- Extract common resources out of
main.yml
. - Create a separate stack for staging.
Creating a nested stack for staging #
Next, we’re going to move all the resources we’ve created for our staging environment into a separate staging stack. We’ll do this by extracting the staging resources into a file called stage.yml
. (Here, ‘stage’ refers to a deployment step, not to the staging environment itself.)
To perform this split, it’s easier if we start by copying the whole main.yml
file.
Press + to interact
cp main.yml stage.yml
Now, let’s delete the following resources from stage.yml
:
DeploymentRole
BuildProject
Access this course and 1400+ top-rated courses and projects.