12. Testing CloudFormation
ND9991 C02 L01 A09 Testing Cloud Formation V2
How to run CloudFormation
For this example, we’ll assume your CloudFormation file name is called
testcfn.yml, and you’re giving your stack the namemyfirsttest.In the terminal, to use your yml code to request the resources, type the following in the same directory as your yml file:
aws cloudformation create-stack
--stack-name myfirsttest
--region us-west-2
--template-body testcfn.yml
- You may also want to use
update-stackwhen you want to update an existing stack instead of destroying your stack and creating a new one.