在“ aws cloudformation删除堆栈”中指定区域

时间:2020-03-26 21:03:57

标签: amazon-web-services amazon-cloudformation aws-cli

堆栈创建允许区域参数化。

aws cloudformation create-stack --stack-name myteststack --region <> --template-body <>

我在帐户的所有区域中都有一个cloudformation堆栈,如何在一个区域中将其删除?

aws cloudformation delete-stack --stack-name myteststack

1 个答案:

答案 0 :(得分:2)

传递--region参数。 region是AWS CLI中的全局选项,可以为所有特定于区域的资源传递。

aws cloudformation delete-stack --stack-name myteststack --region <>