无法使用cloudformation创建AWS ServiceCatalogProduct

问题描述

我正在尝试使用如下所示的cloudformation json文件创建ServiceCatalogProduct:

> aws cloudformation create-stack --stack-name hmm --template-body file:///tmp/1.json

我的cfn模板文件(1.json)如下所示。我已经确认模板文件有效。当我尝试创建堆栈时,收到一条通用错误消息“无法创建以下置备工件:[pa-jas39ah3a1d]”。我想念什么?

{
    "Resources": {
        "Product": {
            "Properties": {
                "Description": "","Name": "redis-DEV-shu-cluster","Owner": "shubham","ProvisioningArtifactParameters": [
                    {
                        "Description": "Time created (UTC): 2020-11-04T04:13:42.897954","DisableTemplateValidation": "true","Info": {
                            "LoadTemplateFromURL": "https://s3:amazonaws.com/my-artifact-bucket-name/ag28ajo1-1ef1-47c9-80dc-7tuha718"
                        },"Name": "1.0.0"
                    }
                ],"SupportEmail": ""
            },"Type": "AWS::ServiceCatalog::CloudFormationProduct"
        }
    }
}

这是cloudformation控制台中“事件”标签中的错误:

enter image description here

解决方法

一个可能的原因是拼写错误:

https://s3:amazonaws.com/my-artifact-bucket-name/ag28ajo1-1ef1-47c9-80dc-7tuha718

应该是(请注意s3.,而不是s3:):

https://s3.amazonaws.com/my-artifact-bucket-name/ag28ajo1-1ef1-47c9-80dc-7tuha718

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...