https://pulumi.com logo
#general
Title
# general
m

microscopic-park-81177

06/09/2023, 11:05 PM
The docs mention a terraform resource
aws_cognito_managed_user_pool_client
that does not seem to be either in the AWS provider or aws-native. My pulumi program is creating a managed opensearch domain w/ cognito authentication. I need to "adopt" the Cognito client definition created by opensearch and modify it to put in additional redirect / logout URLs. If this resource existed, I could probably do it? How do I either add the resource or work around it?
m

melodic-tomato-39005

06/10/2023, 5:27 PM
Hi Duane, the
UserPoolClient
is available as stated by our docs; see here in the Go SDK.
m

microscopic-park-81177

06/12/2023, 1:55 PM
Hi Thomas. Agreed, but it's not exactly what I need? Pulumi's provider docs mention a terraform resource type where they say (presumably copied from the terraform):
To manage a User Pool Client created by another service, such as when configuring an OpenSearch Domain to use Cognito authentication, use the
aws_cognito_managed_user_pool_client
resource instead.
This is my exact situation. Opensearch creates a Cognito user pool on my behalf, and I need to include it in my IAC so that I may make further changes to it. Importing it into state would work, but that's a messy hack.
I don't see a
ManagedUserPoolClient
is what I am saying
m

melodic-tomato-39005

06/22/2023, 2:09 AM
Hi Duane, really sorry for the delay here. I filed an issue for this: https://github.com/pulumi/pulumi-aws/issues/2566
m

microscopic-park-81177

06/22/2023, 2:09 AM
oh hi! Awesome. I didn't know if I was doing something wrong or not
I'm super comfortable w/ terraform but still learning pulumi
thank you Thomas!
( Plus I asked just a couple days before Pulumi Up, so I bet y'all were super busy)
m

melodic-tomato-39005

06/22/2023, 2:12 AM
NP! Be sure to keep asking questions. Unfortunately, our native AWS provider is still a bit limited due to Amazon’s slow expansion of cloud formation. (It’s auto-generated from their specs.)
m

microscopic-park-81177

06/22/2023, 2:13 AM
yeah, I saw that. Amazon doing everyone a favor by giving you a really standardized generateable API, but it's probably not the first class API for each service