sst
sst copied to clipboard
AWS Cognito custom attributes incorrectly tracked
Hi,
It appears that custom attributes for cognito are incorrectly tracked by SST. If you try to remove a custom attribute which is not possible, SST fails as expected. It does however look like SST stops tracking the attribute internally as if it successfully removed it if you try to deploy again.
Steps to reproduce
- Add a custom attribute to the cognito user pool
- Remove the attribute from code and apply
sst deploy --stage dev. The following error is printed a. UserPool sst:aws:CognitoUserPool → UserPoolUserPool aws:cognito:UserPool sdk-v2/provider2.go:515: sdk.helper_schema: updating Cognito User Pool (<POOL-ID>): cannot modify or remove schema items: [email protected] - Apply again and the run is successful
sst deploy --stage dev
SST version: 3.17.23 NodeJS version: 24.11.1
I would recommend not using custom attributes https://github.com/sst/sst/issues/3928