1

我正在尝试使用如下所示的 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 控制台中“事件”选项卡中的错误:

在此处输入图像描述

4

1 回答 1

1

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

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
于 2020-11-04T11:02:14.803 回答