Jan
Jan

Reputation: 573

How to add Identity Provider in AWS SAM or Cloudformation

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

Answers (1)

Poonam Adhav
Poonam Adhav

Reputation: 412

check if provider has "nickname" attribute and if pool supports that.

Upvotes: 1

Related Questions