Reputation: 573
I'm trying yo add an identity provider like described here in my SAM application .
When I run sam deploy
I get the following error:
The attribute mapping is missing required attributes [nickname] (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: xy; Proxy: null)
Although in my YAML definition I mapped the attribute nickname
as follows:
UserPoolIdentityProvider:
Type: AWS::Cognito::UserPoolIdentityProvider
Properties:
AttributeMapping:
given_name: "nickname"
sub: "username"
email: "email"
ProviderDetails:
...
Upvotes: 0
Views: 870
Reputation: 412
check if provider has "nickname" attribute and if pool supports that.
Upvotes: 1