Adding a create change set action to the pipeline

We are now ready to add a new stage to our pipeline that will deploy our application to production. We will create the first action in this stage, which creating a CloudFormation change set.

In the pipeline details view for your pipeline, click on the Edit button and add a new stage called Production after the dev stage, and then add an action to the new stage:

Adding a production stage to the pipeline

In the Add action dialog box, you need to create an action that is similar to the deploy action that you created for the dev stage, with a few variations:

Adding a create change set action to the pipeline

If you compare the deploy action configuration for the dev stage, with the new create change set action configuration as shown in the preceding screenshot, the configuration is very similar, except for the following key differences:

Next, you need to scroll down, expand the Advanced section, configure the Parameter overrides property using the Fn::GetParam  syntax, and finally, configure both the ApplicationVersion and DeploymentRepository artifacts as input artifacts. This is identical to the configuration that you performed earlier, for the dev/deploy action.