Why does ApiGatewayV2 DomainName in Cloudformation Syntax specify list of Tags, but rejects list in favor of single object?

0

The JSON config below generates the error message: Properties validation failed for resource apiDomainName with message: #/Tags: expected type: JSONObject, found: JSONArray

"apiDomainName": {
    "Type": "AWS::ApiGatewayV2::DomainName",
    "Properties": {
      "DomainName": { "Fn::Join": [ "", [ "api.", { "Fn::FindInMap": [ "variable", { "Ref": "env" }, "domain" ] } ] ] },
      "DomainNameConfigurations": [
        {
          "EndpointType": "REGIONAL",
          "SecurityPolicy": "TLS_1_2",
          "CertificateArn": { "Fn::FindInMap": [ "resource", { "Ref": "env" }, "apiCert" ] }
        }
      ],
      "Tags" : [
        { "Key": "managedBy", "Value": "cloudformation" }
      ]
    }
  }
dasch
preguntada hace 2 meses114 visualizaciones
1 Respuesta
0

Hello.

I haven't seen the CloudFormation template you're using, so I don't know the details, but you can use it as follows.
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-domainname.html

      Tags:
        - Key: SystemName
          Value: !Ref SystemName
        - Key: Env
          Value: !Ref Env
profile picture
EXPERTO
respondido hace 2 meses
  • I've updated the question with the cloudformation JSON

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas