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

aws_cognito_user_pool_client name isn't updated #7525

Closed
tomelliff opened this issue Feb 12, 2019 · 3 comments · Fixed by #9437
Closed

aws_cognito_user_pool_client name isn't updated #7525

tomelliff opened this issue Feb 12, 2019 · 3 comments · Fixed by #9437
Labels
bug Addresses a defect in current functionality.
Milestone

Comments

@tomelliff
Copy link
Contributor

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 "me too" comments, 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

Instead it just shows a perpetual diff and never updates it. It looks like this isn't being checked for in the Update method:
https://github.com/terraform-providers/terraform-provider-aws/blob/ebd84798973319148b91b75c2da9f2d63a8f68a4/aws/resource_aws_cognito_user_pool_client.go#L264-L324

Terraform Version

Terraform v0.11.10

  • provider.aws v1.57.99

Note that the 1.57.99 version is because I'm building from a fork that is based on the 1.57 release.

Affected Resource(s)

  • aws_cognito_user_pool_client

Terraform Configuration Files

resource "aws_cognito_user_pool" "pool" {
  name = "pool"
}

resource "aws_cognito_user_pool_client" "client" {
  name = "client"

  user_pool_id = "${aws_cognito_user_pool.pool.id}"
}

Followed by:

resource "aws_cognito_user_pool" "pool" {
  name = "pool"
}

resource "aws_cognito_user_pool_client" "client" {
  name = "updated"

  user_pool_id = "${aws_cognito_user_pool.pool.id}"
}

Expected Behavior

User pool client name should be updated.

Actual Behavior

The name doesn't change and a diff is still shown on the next plan.

Steps to Reproduce

  1. terraform apply first HCL block
  2. terraform apply second HCL block
@bflad bflad added bug Addresses a defect in current functionality. service/cognito labels Feb 13, 2019
@bflad bflad added this to the v2.21.0 milestone Jul 23, 2019
@bflad
Copy link
Contributor

bflad commented Jul 23, 2019

The fix for this has been merged and will release with version 2.21.0 of the Terraform AWS Provider, later this week. 👍 Thanks to @jorcau for the fix implementation.

@bflad
Copy link
Contributor

bflad commented Jul 26, 2019

This has been released in version 2.21.0 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, documentation updates, or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Nov 2, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 2, 2019
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants