Closed miguelconde91 closed 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Fixed adding this code section in my aws_cognito_user_pool_client definition:
token_validity_units {
id_token = "days"
access_token = "days"
refresh_token = "days"
}
Using aws provider v4.48 and Terraform core v1.4.4
This functionality has been released in v4.63.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 or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!
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.
Terraform Core Version
1.3.7 & 1.4.4
AWS Provider Version
4.48 & 4.61
Affected Resource(s)
I updated manually 2 days ago the token durations in my App client in a Cognito User pool for a test. Today a new deployment with new features in other module raise this error in the app client (I just expected a restore to the previous value, the defined in terraform)
This happen without any change in my cognito module. Initially I'm using Terraform Core 1.3.7 with AWS provider 4.58, I updated to Terraform Core 1.4.4 and AWS provider 4.61, the error persist.
Innitially the code was:
Then I see in the terraform logs in terraform plan that the attribute will be update from 1 to 24 and I think, well maybe the unit time changed from hours to days, and 24 days is out of the range for id token and access token, so I updated the values:
However now my error is:
Expected Behavior
Execute
terraform apply
and update my app client with the current values in my terraform files.Actual Behavior
Fails with message
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Update manually the token duration in Cognito, the try to restore with a simple terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None