Shi*_*and 15 amazon-web-services aws-cli
使用 awscli 验证 CloudFormation 模板
aws cloudformation validate-template --template-body file://C:/path/file.yaml
Run Code Online (Sandbox Code Playgroud)
回报
failed to satisfy constraint: Member must have length less than or equal to 51200
Run Code Online (Sandbox Code Playgroud)
有可能简单修复吗?
Shi*_*and 21
validate-template --template-body最大长度限制为 51,200 字节 (50KB)。要验证本地文件,文件大小必须小于 50KB。
如果您想验证更大的模板,您可以将其上传到 s3,然后使用该--template-url参数。它的限制为 460800 字节 (450KB)
aws s3 cp $PATH_TO_FILE s3://$BUCKET_NAME/PATH
aws cloudformation validate-template --template-url https://$BUCKET_NAME.s3.amazonaws.com/path/file.yml
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
18755 次 |
| 最近记录: |