-
Notifications
You must be signed in to change notification settings - Fork 101
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
Access Token Validity not supported #44
Comments
@Waschnick I don't see those attributes in the resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool_client Where did you get In fact, there's an open issue in the AWS provider at hashicorp/terraform-provider-aws#14919 which requests those attributes to be included in the resource. As soon as there are available I can add them to the module. Thanks por reporting them! |
Argh you are right, again. I would just implement it myself and create a PR for it on the hashicorp repo, but it has nearly 700 open PRs. EDIT: No need, there is already an open PR for this... It's the same with the Lambda hook for "CustomSender" (CustomEmailSender), which is only supported via the AWS Cli (its not even visible in the AWS console). I created a shell script running in my CI pipeline to add the lambda via AWS Cli, but that's for the user-pool, which is way easier to configure. The client has way to many attributes... |
@Waschnick another approach is to use a CloudFormation stack called from Terraform to define the client. Take a look at AWS::Cognito::UserPoolClient and the Terraform's resource aws_cloudformation_stack if you want to explore that option. |
Hey @lgallard you should be able to add it now, it was recently released: https://github.com/hashicorp/terraform-provider-aws/blob/v3.32.0/CHANGELOG.md |
@Waschnick I will include it in the next release! |
@Waschnick Release 0.10.2 added the support. For the above screenshot define as follows:
The complete example has this definition, alongside other clients definitions examples. |
Currently there is only
client_refresh_token_validity
, but cognito also supports the validity for the access token (5min to 24h) and id token. Can you addclient_access_token_validity
andclient_id_token_validity
?The text was updated successfully, but these errors were encountered: