- Effective DevOps with AWS
- Yogesh Raheja Giuseppe Borgese Nathaniel Felsen
- 289字
- 2021-07-23 16:27:32
Creating the stack in the CloudFormation console
At this point, we can launch our template using the following steps:
- Open the CloudFormation web console in your browser with the following link: https://console.aws.amazon.com/cloudformation. Click on the Create Stack button.
- On the next screen, we will upload our newly generated template, helloworld- cf.template, by selecting Upload a template to Amazon S3, and then browsing to select our helloworld-cf.template file.
- We will then pick a stack name, such as HelloWorld.
- After the stack name, we can see the Parameters section of our template in action. CloudFormation lets us pick which SSH key-pair to use. Select your key-pair using the drop-down menu.
- On the next screen, we have to ability the add optional tags to our resources; in the Advanced section, we can see how we can potentially integrate CloudFormation and SNS, make decisions on what to do when a failure or a timeout occurs, and even add a stack policy that lets you control who can edit the stack, for example. For now, we will simply click on the Next button.
- This leads us to the review screen where we can verify the information selected and even estimate how much it will cost to run that stack. Click on the Create button.
- This will bring us to the main CloudFormation console. On that screen, we are able to see how our resources are created in the Events tab.
- When the creation of the template is complete, click on the Outputs tabs, which will reveal the information we generated through the Outputs section of our template, as shown here:
- Click on the link in the value of the WebUrl key, which will open our Hello World page.