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
I want to be able to have Terraform manage the cognito user pool client access token and ID token validity period. Currently it only supports refresh token validity. Specifically, I want to be able to specify the number of days and minutes the tokens should be valid for. This is in line with the inputs AWS accepts via the Cognito console.
Attempted Solutions
I tried to specify access_token_validity and id_token_validity but those parameters did not exist. I also tried to do a terraform plan after manually modifying the settings in AWS console in hopes Terraform Plan would show me how those settings are set, but it does not show those values.
Proposal
I would like to include 2 parameters to aws_cognito_user_pool resource
access_token_validity
id_token_validity
The values should be expressed in seconds instead of days such that it can be converted appropriately into minutes and hours.
Alternatively, the value can be expressed as a map with "days" and "minutes" as keys and the corresponding values as numbers.
The text was updated successfully, but these errors were encountered:
ghost
added
enhancement
Requests to existing resources that expand the functionality or scope.
new
labels
Mar 8, 2021
This issue was originally opened by @AlexWang-16 as hashicorp/terraform#28010. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Use-cases
I want to be able to have Terraform manage the cognito user pool client access token and ID token validity period. Currently it only supports refresh token validity. Specifically, I want to be able to specify the number of days and minutes the tokens should be valid for. This is in line with the inputs AWS accepts via the Cognito console.
Attempted Solutions
I tried to specify
access_token_validity
andid_token_validity
but those parameters did not exist. I also tried to do a terraform plan after manually modifying the settings in AWS console in hopes Terraform Plan would show me how those settings are set, but it does not show those values.Proposal
I would like to include 2 parameters to aws_cognito_user_pool resource
The values should be expressed in seconds instead of days such that it can be converted appropriately into minutes and hours.
Alternatively, the value can be expressed as a map with "days" and "minutes" as keys and the corresponding values as numbers.
The text was updated successfully, but these errors were encountered: