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

added extra arguments for explicit_auth_flows #10976

Merged
merged 5 commits into from Jan 17, 2020

Conversation

hunkeelin
Copy link
Contributor

@hunkeelin hunkeelin commented Nov 21, 2019

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Related 10958

release notes for CHANGELOG

@hunkeelin hunkeelin requested a review from a team November 21, 2019 22:07
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. service/cognito labels Nov 21, 2019
@ghost ghost added the documentation Introduces or discusses updates to documentation. label Nov 21, 2019
@bacoboy
Copy link

bacoboy commented Jan 13, 2020

This appears to have stalled with the holiday. Any chance this can get some love soon? Thanks!

@rednap
Copy link

rednap commented Jan 13, 2020

using a temporary work around with local-exec and aws cli (while we wait):

resource "null_resource" "add_SRP_to_cognito_app_client" {
    provisioner "local-exec" {
        command = "export AWS_DEFAULT_REGION=\"us-east-1\" && aws cognito-idp update-user-pool-client --user-pool-id ${aws_cognito_user_pool.cog_pool.id} --client-id ${aws_cognito_user_pool_client.cog_client.id} --explicit-auth-flows \"ALLOW_USER_SRP_AUTH\" \"ALLOW_REFRESH_TOKEN_AUTH\" \"ALLOW_CUSTOM_AUTH\""
    }   
    triggers = { 
        build_number = "${timestamp()}"
    }   
    depends_on = [aws_cognito_user_pool.cog_pool, aws_cognito_user_pool_client.cog_client]
}

every time you apply terraform will see you changed your auth_flows, update your user pool and client with the old style auth flows again, then your local exec runs and updates them to the new style auth flows. it's not pretty but it works.

@claydanford
Copy link
Contributor

Any idea when this will be merged? Looks like the commas were resolved. This is blocking work, and I rather not use a custom provider or the cli work around.

Kindly,

CRD

@claydanford
Copy link
Contributor

The fix that @rednap created does not work, as it will default all other custom options. For example, updating explicit_auth_flows via cli will clear out the support_identity_providers configuration.

@MatusiakMichal
Copy link

Same as @claydanford it indeed is a blocker. May we kindly get this merged already?

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 17, 2020
@bflad bflad added this to the v2.46.0 milestone Jan 17, 2020
Copy link
Member

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @hunkeelin 🚀

Output from acceptance testing:

--- PASS: TestAccAWSCognitoUserPoolClient_allFields (9.45s)
--- PASS: TestAccAWSCognitoUserPoolClient_basic (10.04s)
--- PASS: TestAccAWSCognitoUserPoolClient_RefreshTokenValidity (14.31s)
--- PASS: TestAccAWSCognitoUserPoolClient_allFieldsUpdatingOneField (14.72s)
--- PASS: TestAccAWSCognitoUserPoolClient_Name (15.06s)

@bflad bflad merged commit 4c2e74d into hashicorp:master Jan 17, 2020
bflad added a commit that referenced this pull request Jan 17, 2020
@ghost
Copy link

ghost commented Jan 23, 2020

This has been released in version 2.46.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 Mar 27, 2020

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!

@hashicorp hashicorp locked and limited conversation to collaborators Mar 27, 2020
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. enhancement Requests to existing resources that expand the functionality or scope. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants