-
Notifications
You must be signed in to change notification settings - Fork 4k
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
cognito: The provider Google does not exist for User Pool eu-west_xxxx #15850
Comments
Seems to be similar to issue #15692. You have to add the dependency between the IdentityProvider and the WebClient manually.
Specify dependency:
After this change, the IdentityProvider will be deployed first. Then, the WebClient will be created. The deployment will not fail anymore because it can find the referenced IdentityProvider (which is created before). --> As already proposed in #15692, this solution should be added to the documentation. |
…lient (#15893) When an app client is created, it receives the name of the identity provider as a string. During the deployment, the identity provider must be created first, then the app client can be created (because it references the identity provider). Due to the fact that the reference is passed as a string, CDK can't add the dependency between the identity provider and the app client automatically. Therefore, `addDependency` must be called manually when both constructs are created in the same stack. The missing dependency was reported two times in the last weeks (issue #15850 and #15692). Because of that I would propose to add this behaviour in the readme. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
I've re-opened the original issue - #15692 Closing this as duplicate. |
|
I take my previous comment back. While they do look the same, it seems they're slightly different issues. If both the user pool identity provider and client are associated with the same user pool, they will depend on each other. @revmischa - can you provide the snippet of the CloudFormation template that gets synthesized, specifically the resources of type |
I think |
|
…lient (aws#15893) When an app client is created, it receives the name of the identity provider as a string. During the deployment, the identity provider must be created first, then the app client can be created (because it references the identity provider). Due to the fact that the reference is passed as a string, CDK can't add the dependency between the identity provider and the app client automatically. Therefore, `addDependency` must be called manually when both constructs are created in the same stack. The missing dependency was reported two times in the last weeks (issue aws#15850 and aws#15692). Because of that I would propose to add this behaviour in the readme. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…lient (aws#15893) When an app client is created, it receives the name of the identity provider as a string. During the deployment, the identity provider must be created first, then the app client can be created (because it references the identity provider). Due to the fact that the reference is passed as a string, CDK can't add the dependency between the identity provider and the app client automatically. Therefore, `addDependency` must be called manually when both constructs are created in the same stack. The missing dependency was reported two times in the last weeks (issue aws#15850 and aws#15692). Because of that I would propose to add this behaviour in the readme. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
When I deploy a stack for the first time with a
UserPoolIdentityProviderGoogle
resource and a client withUserPoolClientIdentityProvider.GOOGLE
as asupportedIdentityProvider
, I get an error:The provider Google does not exist for User Pool eu-west-1_D4Lw3qvRK.
If I remove
GOOGLE
fromsupportedIdentityProviders
the first deployment and then uncomment it after the pool is deployed all works smoothly.Reproduction Steps
What did you expect to happen?
Create the pool and client
What actually happened?
Pool created but client fails
Environment
Other
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: