【发布时间】:2020-09-28 01:49:39
【问题描述】:
基于本地 AWS Cloud Formation .yaml 文件。我正在运行以下命令
aws cloudformation create-stack --stack-name someTest --template-body file://template.yaml
抛出以下错误
An error occurred (InsufficientCapabilitiesException) when calling the CreateStack operation: Requires capabilities : [CAPABILITY_AUTO_EXPAND]
我读过here,这与模板包含macros 的事实有关。在这种情况下,在.yaml文件内部,它调用了AWS::Serverless::Function,即
Resources:
ResourceName:
Type: AWS::Serverless::Function
...
...
在创建堆栈时解决此问题的选项有哪些?
【问题讨论】:
标签: amazon-web-services amazon-cloudformation