This message was deleted.
# typescript
s
This message was deleted.
l
Can you paste (using the Slack Text Snippet feature) the code that creates the UserPool?
n
Hi!! ok
Copy code
this.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
    );
l
Do you run your
pulumi up
with
--refresh
? Or run a refresh occasionally?
n
I use refresh.. pulumi always find something to update or delete.. even I didn't change anything.. look at this..
I don't understand that.. and some times it deletes security groups rules..
l
That's probably becuase you're mixing internal and associatedrules
Don't refresh, fix your code
n
ok.. I´m going to check them
thanks..
l
Your original problem will go away if you don't refresh. But better, just set that value correctly.
n
yes.. One step at time..