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

Add support for the new Cognito Managed Login UI #2011

Open
obrassard opened this issue Jan 22, 2025 · 2 comments
Open

Add support for the new Cognito Managed Login UI #2011

obrassard opened this issue Jan 22, 2025 · 2 comments
Labels
area/codegen impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features

Comments

@obrassard
Copy link

obrassard commented Jan 22, 2025

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Amazon Cognito introduces Managed Login, a fully-managed, hosted sign-in and sign-up experience that customers can personalize to align with their company or application branding.

Announcement

I am trying to create a Cognito User pool using the new Managed Login UI. Based on the documentation it seems that it is not yet supported in @pulumi/aws/cognito.

I found some documentation related to this feature in@pulumi/aws-native (https://www.pulumi.com/registry/packages/aws-native/api-docs/cognito/userpooldomain/) however when using the package it seems that this type of entity cannot be created by AWS Cloud Control API.

  const domain = new aws_native.cognito.UserPoolDomain("main", {
    domain: "myCustomDomainPrefix",
    userPoolId: pool.id,
    managedLoginVersion: 2, // 2 for the new UI
  });

This code returns the following error message : UnsupportedActionException: The resource AWS::Cognito::UserPoolDomain is not yet supported via Cloud Control API

Is there a plan to support this new feature soon in Pulumi ?
Thanks

@obrassard obrassard added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Jan 22, 2025
@obrassard
Copy link
Author

After more search, I realized that part of the Managed UI could be setup with the aws-nativeplugin.
https://www.pulumi.com/registry/packages/aws-native/api-docs/cognito/managedloginbranding/

However, we still haven't found a way to configure the UserPoolDomain properly so that it uses the new type of login page. By default it it the Hosted UI v1.

@corymhall
Copy link
Contributor

@obrassard it looks like the AWS::Cognito::UserPoolDomain is not supported by AWS Cloud Control which means it will not be available here.

Unfortunately it looks like we have a process to never unpublish a resource once it has been published. At some point in the past it looks like AWS switched the setting on that resource indicating that it had CCAPI support, we published a version with that resource, and then AWS switched the setting off again. In the past I've seen AWS do this by mistake or because there was an issue with the rollout and they had to rollback CCAPI support.

We should update the logic here to add the deprecation message for this resource

if !ctx.isSupported {
deprecationMessage = fmt.Sprintf("%s is not yet supported by AWS Cloud Control, so its creation will currently fail. Please use the classic AWS provider, if possible.", resourceTypeName)
}

@corymhall corymhall added impact/usability Something that impacts users' ability to use the product easily and intuitively area/codegen and removed needs-triage Needs attention from the triage team labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/codegen impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants