We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9
Cloud-Formation
You work for XYZ Corporation. Your team is asked to deploy
similar architecture multiple times for testing, development, and production purposes. Implement CloudFormation for the tasks assigned to you below. Tasks to be performed 1. Create a cloud formation template which can create an S3 bucket named “Intellipaat-<yourname >” 2. The template should be able to enable versioning for the bucket created.
Go to cloud Formation and choose create stack.
Here we can choose “existing-template” or “build from infrastructure
composer” in our case we are creating infrastructure. It will display the interface as shown, where we can create our template with code and we can view the infrastructure in the “Canvas” window.
Paste “YAML” code for S3 bucket creation and choose “create
template”
Success message will be shown and click on next.
Give stack name and choose next
Review details and create
The create stack can be accessed under the stacks tab. The stack is getting created. It will show creation of resources under update-events tab.
Once the stack is completed. The progress is shown as completed.
You can check the created S3 bucket in S3 service.
The versioning for the bucket is Enabled.
Use the template from CloudFormation task 1. 2. Add Notification to the CloudFormation stack using SNS so that you get a notification via mail for every step of the stack creation process. ● Add SNS configuration to the template.
Now SNS notification is created.
Create a subscription which helps you write the steps for creation of S3 bucket.
You will receive the notification about S3 creation.