I want to create the following resources through CloudFormation.
When cloudformation executed to create identity pool principalTag, it failed. And event output:
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" ]}
}
}
}
}