Adding outputs

The final step in finishing your master template is to add outputs. Outputs section of the CloudFormation template allows us to return any values to the user after the Stack creation is completed successfully. Some examples are IP address of the EC2 instance, VPC Id, etc.

Add Outputs

For this workshop, you will add the following outputs to your master template.

        Description: The web server URL
          - WorkloadStack
          - Outputs.URL

Run the following command to add outputs to master.template.yaml file.

curl -s >>templates/master.template.yaml

Commit your changes.

git commit -a -m 'Add outputs to master template'

Inspect Outputs

Open templates/master.template.yaml in an editor and your Outputs section should have all the outputs, as mentioned above.

Congratulations! You have successfully finished developing CloudFormation templates for your Quick Start. It’s time to test it now.