You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 CLI: 0.14.8
AWS Provider v3.32.0
Affected Resource(s)
aws_cognito_user_pool_client
Terraform Configuration Files
terraform {
required_providers {
aws={
source ="hashicorp/aws"
version ="~> 3.32.0"
}
}
}
provider"aws" {
region="ca-central-1"
}
resource"aws_cognito_user_pool""pool" {
name="test_user_pool"
}
resource"aws_cognito_identity_pool""id_pool" {
identity_pool_name="Test identity pool"allow_unauthenticated_identities=true
}
resource"aws_cognito_user_pool_client""client" {
name="my_web_client"user_pool_id=aws_cognito_user_pool.pool.idaccess_token_validity=3600id_token_validity=60refresh_token_validity=86400token_validity_units {
access_token="seconds"id_token="minutes"refresh_token="seconds"
}
}```
### Expected Behavior
Terraform should allow refresh_token_validity value to go beyond 3650 when the refresh token validity unit is set to "seconds"; For example, 86400 seconds is 24 hours which is 1 day.
The error message indicating the limit of 0-3650 is for the default validity unit of "days".### Actual Behavior
Terraform CLI produces the following error: Error: expected refresh_token_validity to be in the range (0-3650), got 86400### Steps to Reproduce1. `terraform apply`
### References*#14919
The text was updated successfully, but these errors were encountered:
AlexWang-16
changed the title
AWS Cognito User Pool Client Refresh Token Validity does not respond to validity unit change
AWS Cognito User Pool Client Refresh Token Validity resets to default validity unit when seconds is specified
Mar 15, 2021
bill-rich
added
bug
Addresses a defect in current functionality.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Mar 19, 2021
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.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform CLI: 0.14.8
AWS Provider v3.32.0
Affected Resource(s)
Terraform Configuration Files
The text was updated successfully, but these errors were encountered: