问题描述
我正在尝试使用如下所示的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控制台中“事件”标签中的错误:
解决方法
一个可能的原因是拼写错误:
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