0
0
AWScloud~10 mins

Creating stacks in AWS - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new CloudFormation stack using AWS CLI.

AWS
aws cloudformation create-stack --stack-name MyStack --template-body file://template.yaml --[1]
Drag options to blanks, or click blank then click option'
Aregion us-west-2
Bregion us-east-1
Cprofile default
Doutput json
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to specify the region causes the command to use the default region, which might not be intended.
Using incorrect option names like --regions instead of --region.
2fill in blank
medium

Complete the code to update an existing CloudFormation stack with a new template file.

AWS
aws cloudformation update-stack --stack-name MyStack --template-body file://[1]
Drag options to blanks, or click blank then click option'
Aold-template.yaml
Bstack-template.yaml
Ctemplate.json
Dnew-template.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using the old template file instead of the new one.
Mistyping the file name or path.
3fill in blank
hard

Fix the error in the command to delete a CloudFormation stack.

AWS
aws cloudformation [1]-stack --stack-name MyStack
Drag options to blanks, or click blank then click option'
Aremove
Bdestroy
Cdelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect verbs like remove or destroy which are not valid AWS CLI commands.
Misspelling the command.
4fill in blank
hard

Fill both blanks to create a stack with parameters and specify the region.

AWS
aws cloudformation create-stack --stack-name MyStack --template-body file://template.yaml --parameters ParameterKey=InstanceType,ParameterValue=[1] --[2]
Drag options to blanks, or click blank then click option'
At2.micro
Bt3.micro
Cregion us-east-1
Dregion us-west-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using an invalid instance type.
Not specifying the region or using wrong option syntax.
5fill in blank
hard

Fill all three blanks to update a stack with a new template, specify a parameter, and set the region.

AWS
aws cloudformation update-stack --stack-name MyStack --template-body file://[1] --parameters ParameterKey=KeyName,ParameterValue=[2] --[3]
Drag options to blanks, or click blank then click option'
Anew-template.yaml
Bmy-keypair
Cregion us-west-2
Dregion us-east-2
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong template file or parameter value.
Incorrect region option syntax.