07/21/2021, 10:09 AM
Hi Pulumi community, I'm trying to add a DynamoDB table to my stack but Pulumi is reporting that my Cognito user pool changed as well, specifically user pool domain. I haven't made any changes to my user pool but even when I proceed with the change I get the following error.
aws:cognito:UserPoolDomain (dev.myapp.user-pool-client.web-app.domain-name):
    error: deleting urn:pulumi:dev::myapp::aws:cognito/userPoolDomain:UserPoolDomain::dev.myapp.user-pool-client.web-app.domain-name: 1 error occurred:
        * Error deleting User Pool Domain: InvalidParameterException: The domain is not configured for this user pool.
Google search came up with this but being new to IaaC world I really don't understand difference between
pulumi state delete
pulumi state unprotect
. What can potentially go wrong when I run any of these commands? I really wouldn't like to lose my user pool with all users inside. Thanks