amazon-web-services - 如何验证或创建 CloudFormation 堆栈

标签 amazon-web-services aws-cloudformation

我添加了CloudFormation设置文件vpc.ymlfront.yml,导出vpc.yml中的一些值并导入它们。 我运行了以下命令,但它不起作用。

$ aws cloudformation validate-template --template-body file://front.yml
An error occurred (ValidationError) when calling the ValidateTemplate operation: Template format error: Unresolved resource dependencies [VPCGatewayAttach] in the Resources block of the template

堆栈从其他堆栈导入值的有效命令是什么?

最佳答案

您收到的错误是因为您在指定依赖于 VPCGatewayAttach 的资源之一中具有 dependsOn 属性,但 VPCGatewayAttach 不存在在你的 cft 中。

关于amazon-web-services - 如何验证或创建 CloudFormation 堆栈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47489321/

相关文章:

amazon-web-services - 通过 Cloudformation 创建资源时无法通过 SSH 连接到我的 ec2 实例

yaml - 通过 JSON 字符串参数传递 CloudFormation YAML 列表

python - AWS Lambda : Does Language change affect RAM(Memory) Usage or cost of the service?

amazon-web-services - boto3 iot-data 发布的消息未收到

javascript - 如果存在则追加到列表或在 dynamoDB 中添加列表

amazon-web-services - 无服务器错误,当自定义命名资源需要替换时,CloudFormation 无法更新堆栈

amazon-s3 - 使用 OAI 限制存储桶策略时,具有 S3 源的 Cloudfront 返回 AccessDenied

amazon-web-services - 在 cf 模板中设置导出时,如何使用 fn::att 或 fn::select 或任何其他内置函数获取当前 VPC CIDR

amazon-web-services - CloudFormation - 无法创建 KMS

amazon-web-services - AWS SimpleDB CLI : How to use the 'select' command?