Skip to content

fix: use name instead of type #4506

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

Merged
merged 6 commits into from
Jan 31, 2025
Merged

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Jan 27, 2025

Changes

With this PR, we're addressing an issue where, upon using the configureAdminCognitoFederation and the name prop with the OIDC provider, the deployment would fail with with the following error message:

InvalidParameterException: The provider OIDC does not exist for User Pool eu-central-1_k5dRgsz9W

This was happening because, in case name is provided, internally, instead of using it when linking with the user pool client, the provider type would be used.

In other words, if we take a look at the example below, the identity provider auth0 would get created, but when it comes to linking it with the user pool client, the OIDC value would be used, instead of auth0. And, of course, since the OIDC provider does not exist, Pulumi throws the above error.

image

So, with this PR, we're addressing this issue, by ensuring the name is actually used when linking with the UPC, instead of the type.

How Has This Been Tested?

Manually.

Documentation

Changelog.

@adrians5j adrians5j changed the title fix: use extension command instead of scaffold configureAdminCognitoFederation - Use Name Instead of Type Where Needed Jan 27, 2025
@webiny-bot webiny-bot added this to the 5.42.1 milestone Jan 27, 2025
@adrians5j adrians5j marked this pull request as ready for review January 31, 2025 06:04
@adrians5j adrians5j requested a review from Pavel910 January 31, 2025 06:04
@adrians5j adrians5j changed the title configureAdminCognitoFederation - Use Name Instead of Type Where Needed fix: use name instead of type Jan 31, 2025
@adrians5j adrians5j merged commit 85339fa into dev Jan 31, 2025
17 checks passed
@adrians5j adrians5j deleted the adrian/cognito-fed-provider-name-fix branch March 27, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants