Skip to content
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

Typo in aws_elasticache_user update method is preventing password rotation #20529

Closed
josephkphan opened this issue Aug 11, 2021 · 1 comment · Fixed by #20530
Closed

Typo in aws_elasticache_user update method is preventing password rotation #20529

josephkphan opened this issue Aug 11, 2021 · 1 comment · Fixed by #20530
Labels
bug Addresses a defect in current functionality. service/elasticache Issues and PRs that pertain to the elasticache service.

Comments

@josephkphan
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform Version: v1.0.0
AWS Provider Version: 3.52.0

Affected Resource(s)

  • aws_elasticache_user (On Updating the Password Field)

Terraform Configuration Files

resource "aws_elasticache_user" "gateway-service" {
  user_id       = var.user_id
  user_name     =  var.username
  access_string = "on ~* +@all"
  engine        = "REDIS"
  passwords     = [var.password1, var.password2]
}

Expected Behavior

Updating password1 and password2 should update the user passwords.

Actual Behavior

Terraform is updating the statefile, but not the resource itself in AWS.
There is a successful Apply Complete!

References

Troubleshooting locally, https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_elasticache_user.go#L176-L179

		if d.HasChange("password") {
			req.Passwords = expandStringSet(d.Get("password").(*schema.Set))
			hasChange = true
		}

does not match the resource schema with field passwords

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/elasticache Issues and PRs that pertain to the elasticache service. labels Aug 11, 2021
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 12, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/elasticache Issues and PRs that pertain to the elasticache service.
Projects
None yet
2 participants