[AWS] Lab - CloudFormation
CloudFormation
In this hands-on exercise, you will create an S3 bucket with AWS CloudFormation.
-
Prerequisites: AWS account
-
By the end of this lab, you will be able to:
- Create a CloudFormation stack using the CloudFormation Designer
- Launch S3 bucket using Infrastructure as Code
- Save and deploy a CloudFormation stack
- View resources created through CloudFormation
Follow the exercise instructions described below:
Steps:
- Create CloudFormation Stack
- On the AWS Management Console page, type
cloud formation
in theFind Services
box and then selectCloudFormation
.Important: The redesigned AWS CloudFormation console is available now. This tutorial covers the new designer. To access the new designer, click on the
Try it out now and provide us feedback.
message that displays in a message similar to what’s shown below.
- On the AWS Management Console page, type

CloudFormation dashboard
- If the left-hand menu options do not appear, expand the options by clicking on
in the top left-hand corner.
- Select
Designer
from the left-hand menu. - Locate
S3
in theResource Type
section and expand it. - Select Bucket and drag it to the designer window on the right-hand side.
- Copy the JSON below and replace entirely the JSON found in the
Properties
tab.
Hit the Refresh button in the upper right-hand corner so that the Designer is not out of date.{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Basic S3 Bucket CloudFormation template", "Resources": { "S3BucketCreatedByCloudFormation": { "Type": "AWS::S3::Bucket", "DeletionPolicy": "Delete", "Properties": { "AccessControl": "PublicRead" } } }, "Outputs": { "BucketName": { "Value": { "Ref": "S3BucketCreatedByCloudFormation" }, "Description": "Name of the newly created Amazon S3 Bucket" } } }
- Save CloudFormation Stack
- In the CloudFormation Designer Toolbar, click the Document icon , and click Save.
- Click
Local File
and clickSave
. The JSON file will download. - In the AWS CloudFormation Designer toolbar, click to validate your template. You will see a message that states,
Template is valid
.

Designer toolbar - save, verify, and then deploy the stack.
- Deploy CloudFormation Stack
- In the CloudFormation Designer Toolbar, click to deploy the stack. The
Create stack
screen appears. - Accept the defaults and click
Next
. - Enter a
Stack name
. LeaveParameters
empty. ClickNext
. - Leave the defaults and click
Next
. - Review the stack details and click
Create Stack
. The stack status will beCREATE_IN_PROGRESS
. To the current status of the stack, select the Refresh button in the upper right-hand corner. Once the stack reaches theCREATE_COMPLETE
status, the stack has been deployed.
- In the CloudFormation Designer Toolbar, click to deploy the stack. The
- View S3 Bucket created by CloudFormation Stack
- From the
Services
menu option at the top, type inS3
and selectS3
. - To quickly find the bucket created by the CloudFormation Stack, click on
Date Created
in the column heading to sort by the most recent buckets created. - The newly created bucket appears at the top,
cfs3stack-s3bucketcreatedbycloudformation-1at0fv1v9ndc1
.
- From the
- Delete CloudFormation Stack
- To avoid on-going charges, delete the stack by navigating to the stack, and click the
Delete
button in the upper right-hand corner.Note: When the stack is deleted, all resources created by the stack template will also be deleted.
- To avoid on-going charges, delete the stack by navigating to the stack, and click the
分类:
AWS
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
2019-04-09 [Spring Boot] Use Component Scan to scan for Bean
2019-04-09 [Docker] Docker compose in action for Node.js and MongoDb
2019-04-09 [Docker] Docker Compose basic
2018-04-09 [Performance] Optimize Paint and Composite for the website
2017-04-09 [Angular] Implementing a ControlValueAccessor