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)
- Dump your current user pool settings:
aws cognito-idp describe-user-pool --user-pool-id ap-uat-pool > uat-pool-current-settings.json
- 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"
- 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
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)
aws cognito-idp describe-user-pool --user-pool-id ap-uat-pool > uat-pool-current-settings.jsonaws 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"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
EmailConfigurationscope, which was the only section passed in via CLI.Additional context
Possibly related to this older issue: #3302