带有标签的 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
EXPERTE
gefragt vor 8 Monaten19 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen