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 - Ability to set Remember User Device to Always #14626

Closed
ghost opened this issue Aug 13, 2020 · 6 comments · Fixed by #14935
Closed

AWS Cognito User Pool - Ability to set Remember User Device to Always #14626

ghost opened this issue Aug 13, 2020 · 6 comments · Fixed by #14935
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Aug 13, 2020

This issue was originally opened by @lama-ank as hashicorp/terraform#25841. It was migrated here as a result of the provider split. The original body of the issue is below.


Current Terraform Version

Terraform v0.12.29

Use-cases

Setting Remember Device to "Always" in AWS Cognito User Pool

Attempted Solutions

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool
The cognito_user_pool provider has these options for devices, but not one to always remember the user device.
challenge_required_on_new_device 
device_only_remembered_on_user_prompt 

Proposal

Adding an argument to set the remember user device option of Cognito user pools to 'Always'

References

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 13, 2020
@lama-ank
Copy link

If remember device is set to Always in AWS console, it is set back to No when tf is applied.

@WGriffing
Copy link

WGriffing commented Sep 15, 2020

I could use this feature as well, but tf might be limited by what AWS CloudFormation exposes for Cognito User Pools.

See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-deviceconfiguration.html

Also, using

  lifecycle {
    ignore_changes = [device_configuration]
  }

within your aws_cognito_user_pool block is a way to get tf to not change the setting back to no. I've done some limited testing and this appears to be a viable workaround.

@lama-ank
Copy link

I see, thanks for checking out. We are using the workaround.

@chrispruitt
Copy link

chrispruitt commented Dec 17, 2020

This issue appears to be fixed explanation here -> #16799 (comment)

@YakDriver YakDriver self-assigned this Mar 9, 2021
@YakDriver YakDriver added service/cognito and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 9, 2021
@github-actions github-actions bot added this to the v3.32.0 milestone Mar 9, 2021
@ghost
Copy link
Author

ghost commented Mar 12, 2021

This has been released in version 3.32.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 for triage. Thanks!

@ghost
Copy link
Author

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

@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants