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 - Unable to set remember user's devices to "No" #16799

Closed
chrispruitt opened this issue Dec 16, 2020 · 4 comments · Fixed by #14935
Closed

AWS Cognito User Pool - Unable to set remember user's devices to "No" #16799

chrispruitt opened this issue Dec 16, 2020 · 4 comments · Fixed by #14935
Assignees
Labels
documentation Introduces or discusses updates to documentation.
Milestone

Comments

@chrispruitt
Copy link

In the AWS Console, there are 3 options. Here only two are currently available in the device_configuration block since this is a boolean.

device_only_remembered_on_user_prompt = true (console shows "User Opt In" selected)
device_only_remembered_on_user_prompt = false (console shows "Always" selected)

I would propose something like this to match the AWS Cognito console:

rememer_device = "ALWAYS | USEROPTIN | NO"
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 16, 2020
@gdavison
Copy link
Contributor

Hi @chrispruitt. We implement the Terraform resources to match up with the underlying AWS API structures. In this case the three options are:

"Always"

resource "aws_cognito_user_pool" "example" {
  ...
  device_configuration {
    device_only_remembered_on_user_prompt = false
  }
}

"User Opt In"

resource "aws_cognito_user_pool" "example" {
  ...
  device_configuration {
    device_only_remembered_on_user_prompt = true
  }
}

"No": do not specify a device_configuration block, i.e.

resource "aws_cognito_user_pool" "example" {
  ...
}

We can improve the documentation around this.

@gdavison gdavison added documentation Introduces or discusses updates to documentation. service/cognito and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 17, 2020
@chrispruitt
Copy link
Author

Well, that makes perfect sense. Thank you for the explanation. @gdavison, feel free to close this unless you want to leave it open to track a documentation update.

@ghost
Copy link

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

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
documentation Introduces or discusses updates to documentation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants