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.
For this workshop, you will add the following outputs to your master template.
Outputs: WebUrl: Description: The web server URL Value: Fn::GetAtt: - WorkloadStack - Outputs.URL
Run the following command to add outputs to master.template.yaml file.
curl -s https://raw.githubusercontent.com/aws-quickstart/quickstart-workshop-labs/master/implementing/templates/outputs.master.template.yaml >>templates/master.template.yaml
Commit your changes.
git commit -a -m 'Add outputs to master template'
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.