https://pulumi.com logo
#general
Title
# general
n

narrow-cpu-35517

12/23/2022, 10:14 AM
Hi, I am trying to setup cognito user pool but the required attributes are not being set from the API
Copy code
const userpool = new aws.cognito.UserPool(`${name}-userpool`, {
            usernameAttributes: ["email", "phone_number"],
            accountRecoverySetting: {
                recoveryMechanisms: [
                    {
                        name: "verified_phone_number",
                        priority: 1
                    }, {
                        name: "verified_email",
                        priority: 2
                    }
                ]
            },
            smsConfiguration: {
                externalId,
                snsCallerArn: snsRole.arn,
                snsRegion: "us-east-1",
            },            
            schemas: [
                {
                    name: "given_name",
                    attributeDataType: "String",
                    mutable: true
                },
                {
                    name: "family_name",
                    attributeDataType: "String",
                    mutable: true
                }
            ]
        })