Complete the AWS CLI command to update a CloudFormation stack named 'MyStack'.
aws cloudformation update-stack --stack-name [1] --template-body file://template.yamlThe --stack-name option specifies the name of the stack to update. Here, it should be 'MyStack'.
Complete the AWS CLI command to delete a CloudFormation stack named 'TestStack'.
aws cloudformation [1] --stack-name TestStackThe delete-stack command removes the specified CloudFormation stack and all its resources.
Fix the error in the AWS CLI command to update a stack with a new template file named 'new-template.yaml'.
aws cloudformation update-stack --stack-name MyStack --template-body file://[1]The --template-body option must point to the correct new template file. Here, it should be 'new-template.yaml'.
Fill both blanks to complete the AWS CLI command that updates a stack named 'ProdStack' with a template file and a parameter override.
aws cloudformation update-stack --stack-name [1] --template-body file://[2] --parameters ParameterKey=InstanceType,ParameterValue=t2.micro
The stack name is 'ProdStack' and the template file is 'prod-template.yaml' to match the production environment.
Fill all three blanks to complete the AWS CLI command that deletes a stack named 'TestStack' and waits until the deletion is complete.
aws cloudformation [1] --stack-name [2] && aws cloudformation wait [3] --stack-name TestStack
The command deletes the stack 'TestStack' and then waits until the stack deletion is complete using 'stack-delete-complete'.