-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r/aws_cognito_user: Fix resource recreation for pre-v5.56.0 resources imported with certain import IDs #38182
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
% make testacc TESTARGS='-run=TestAccCognitoIDPUser_' PKG=cognitoidp
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/cognitoidp/... -v -count 1 -parallel 20 -run=TestAccCognitoIDPUser_ -timeout 360m
--- PASS: TestAccCognitoIDPUser_disappears (21.18s)
--- PASS: TestAccCognitoIDPUser_basic (23.64s)
--- PASS: TestAccCognitoIDPUser_enabled (35.49s)
--- PASS: TestAccCognitoIDPUser_attributes (36.57s)
--- PASS: TestAccCognitoIDPUser_v5560Regression (37.61s)
--- PASS: TestAccCognitoIDPUser_password (46.75s)
--- PASS: TestAccCognitoIDPUser_temporaryPassword (46.86s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cognitoidp 52.444s
This functionality has been released in v5.56.1 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Prior to Terraform AWS Provider v5.56.0 the resource ID wasn't parsed during Read/Update/Delete -- the configured
user_pool_id
andusername
attributes were referenced directly.This means that if a pre-existing resource had a resource ID that didn't match
user_pool_id
/username
, after upgrading to v5.56.0 the resource would show as to-be-recreated interraform plan
.This PR restores the functionality of referencing the attributes directly.
Relations
Closes #38175.
Relates #37024.
Output from Acceptance Testing