Skip to content

Updating Cognito User Pool EmailConfiguration->ConfigurationSet changes other settings outside this scope #6484

@trogau

Description

@trogau

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
Updating a Cognito User Pool via AWS CLI to add a Configuration Set changes several other settings that are not specified in the payload.

SDK version number
aws-cli/2.1.22 Python/3.7.9 Windows/10 exe/AMD64 prompt/off

Platform/OS/Hardware/Device
Windows.

To Reproduce (observed behavior)

  1. Dump your current user pool settings: aws cognito-idp describe-user-pool --user-pool-id ap-uat-pool > uat-pool-current-settings.json
  2. Update your user pool to have a new configuration set: aws cognito-idp update-user-pool --user-pool-id uat-pool --email-configuration="SourceArn=arn:aws:ses:us-west-2:18941781714:identity/accounts@example.com,EmailSendingAccount=DEVELOPER,From=Explorate <accounts@example.com>,ConfigurationSet=SESConfSet"
  3. Re-dump your current user pool settings and diff them with the ones from step 1. (You can also manually verify the changes in the console, but it might be faster/safer/easier to check via diff if you're familiar with the JSON output from this command.)

When we did this in two of our user pools, the ConfigurationSet was correctly updated, but the following features also changed:
MFA & verifications: Email verification seemed to be disabled & switched to ‘no verification’ (AutoVerifiedAttributes in the JSON diff).
– Message customizations: email verification message template & user invitation message template were both erased.
– Devices: “Do you want to remember your user’s devices” was set to No.

Expected behavior
I'd expected the changes would be limited to the EmailConfiguration scope, which was the only section passed in via CLI.

Additional context
Possibly related to this older issue: #3302

Metadata

Metadata

Assignees

Labels

cognito-idpguidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions