【问题标题】:Cannot create AWS ServiceCatalogProduct using cloudformation无法使用 cloudformation 创建 AWS ServiceCatalogProduct
【发布时间】:2021-02-17 00:58:44
【问题描述】:

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

【问题讨论】:

  • LoadTemplateFromURL的模板呢?
  • 我已经提取了该模板并确认它是有效的,我可以使用 cloudformation 手动运行它..

标签: amazon-web-services amazon-cloudformation amazon-iam aws-service-catalog


【解决方案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

【讨论】:

  • aargh - 我花了整整 4 天的时间试图“调试”我做错了什么......哈哈
猜你喜欢
  • 2021-10-15
  • 2021-07-30
  • 1970-01-01
  • 2021-01-05
  • 2020-12-15
  • 2018-12-17
  • 2018-04-13
  • 2017-02-06
  • 2020-12-12
相关资源
最近更新 更多