Create cognito IdentityPool IdentityPoolPrincipalTag resource failed by Cloudformation. HandlerErrorCode is InternalFailure.

0

I want to create the following resources through CloudFormation.

When cloudformation executed to create identity pool principalTag, it failed. And event output: Enter image description here

I want to know how to create tags correctly.

Environment: IAM user: admin region: ap-northeast-1 TestCloudFormationTemplate.json

{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Resources": {
    "UserPool": {
      "Type": "AWS::Cognito::UserPool"
    },
    "UserPoolClient": {
      "Type": "AWS::Cognito::UserPoolClient",
      "DependsOn": "UserPool",
      "Properties": {
        "UserPoolId": {
          "Ref": "UserPool"
        }
      }
    },
    "IdentityPool":{
      "Type" : "AWS::Cognito::IdentityPool",
      "Properties" : {
          "AllowUnauthenticatedIdentities": false,
          "CognitoIdentityProviders" : [ { "ClientId": {"Ref":"UserPoolClient" }, "ProviderName": {"Fn::GetAtt": ["UserPool", "ProviderName" ]}}]
      }
    },
    "IdentityPoolPrincipalTag": {
      "Type" : "AWS::Cognito::IdentityPoolPrincipalTag",
      "Properties" : {
        "IdentityPoolId" : { "Ref": "IdentityPool" },
        "IdentityProviderName" : {"Fn::GetAtt": ["UserPool", "ProviderName" ]}
        }
    }
  }
}
Keine Antworten

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