带有标签的 DevOps Guru CloudFormation 模板

0

【以下的问题经过翻译处理】 你好,

作为一个开发人员,我正在尝试使用CloudFormation来部署DevOps Guru,以便针对特定的带标签资源进行部署。

我按照文档https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-devopsguru-resourcecollection-tagcollection.html编写了以下代码:

Resources:
  DevOpsGuruMonitoring:
    Type: AWS::DevOpsGuru::ResourceCollection
    Description: AWS operations service to improve the performance and availability of their applications
    Properties:
      ResourceCollectionFilter:
        Tags:
          - AppBoundaryKey: !Ref AppBoundaryKey

但是,CloudFormation在更新DevOps Guru时失败了,报错如下:

Resource handler returned message: "null" (RequestToken: 68fa3896-44bf-eab6-2b63-e3bf13390fe0, HandlerErrorCode: InternalFailure)

这个报错信息不太清晰,看起来像是CloudFormation内部错误,无法与标签值一起使用。

有什么想法吗?

James

profile picture
전문가
질문됨 9달 전22회 조회
1개 답변
0

【以下的回答经过翻译处理】 以下模板对我来说可以正常运行,对于所有资源,您是否尝试使用“*”作为TagValues的值?

DevOpsGuruResourceCollection:
    Type: AWS::DevOpsGuru::ResourceCollection
    Properties:
      ResourceCollectionFilter:
        Tags:
        - AppBoundaryKey: "Devops-guru-cfn-default"
          TagValues:
          - "devopsgurudemo-cluster-aws-test-1"

更新:经过测试,“*”也可以正常工作。

  DevOpsGuruResourceCollection:
    Type: AWS::DevOpsGuru::ResourceCollection
    Properties:
      ResourceCollectionFilter:
        Tags:
        - AppBoundaryKey: "Devops-guru-cfn-default"
          TagValues:
          - "*"
profile picture
전문가
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠