numerous-carpenter-4252
04/24/2023, 10:13 PMaws:cognito:UserPool (devops-devops-auth-usr-pool):
error: 1 error occurred:
* updating urn:pulumi:devops::bric-infra::bric:infra:Infra$bric:auth:Cognito$aws:cognito/userPool:UserPool::devops-devops-auth-usr-pool: 1 error occurred:
* error updating Cognito User pool (eu-central-1_uRXXXXXXq6): InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, UpdateUserPoolInput.AccountRecoverySetting.RecoveryMechanisms
but , If I run it again, pulumi up runs without any issue, everything is ok.
Why do I run pulumi up twice?little-cartoon-10569
04/25/2023, 8:25 PMnumerous-carpenter-4252
04/25/2023, 8:26 PMthis.userPool = new aws.cognito.UserPool(
namespaced(name, "usr-pool"),
{ emailConfiguration: emailConfig,
autoVerifiedAttributes: ["email"],
usernameAttributes: ["email"],
schemas: [
{
attributeDataType: "String",
name: "email",
mutable: false,
required: true,
stringAttributeConstraints: {
minLength: "1",
maxLength: "256",
},
},
{
attributeDataType: "String",
name: "userType",
mutable: true,
stringAttributeConstraints: {
minLength: "1",
maxLength: "256",
},
},
],
lambdaConfig: {
postConfirmation: getFunctionArn(args.lambdaPostConfirmation),
customMessage: getFunctionArn(args.lambdaCustomMessage),
},
},
resourceOpts
);
little-cartoon-10569
04/25/2023, 8:41 PMpulumi up
with --refresh
? Or run a refresh occasionally?numerous-carpenter-4252
04/25/2023, 8:45 PMlittle-cartoon-10569
04/25/2023, 8:48 PMnumerous-carpenter-4252
04/25/2023, 8:49 PMlittle-cartoon-10569
04/25/2023, 8:50 PMnumerous-carpenter-4252
04/25/2023, 8:51 PM