Hi folks! I'm using the <EKS package> and I'm tryi...
# general
c
Hi folks! I'm using the EKS package and I'm trying to get the URL of the OIDC. I tried using the following code snippet but I ran into an issu.
Copy code
oidcProvider := cluster.Core.OidcProvider().ApplyT(func(oidcUrl string) string {
	return strings.Trim(oidcUrl, "https://")
})
The error is in the image below. Has anyone used this EKS package and did they find a workaround for this?
b
give this a try:
Copy code
oidcarn := cluster.Core.OidcProvider().ApplyT(func(oidcprovider *iam.OpenIdConnectProvider) pulumi.StringOutput {
	if oidcprovider == nil {
		return pulumi.String("").ToStringOutput()
	}
	return oidcprovider.Arn
}).ApplyT(func(v interface{}) string {
	return v.(string)
})
replace the
.Arn
with
.Url
if needed
c
Omg! Thank you for this! Works like a charm
b
@white-balloon-205 helped me with the exact same thing eaelier today 🙂
c
Oh well! I hope I'll be able to help someone too!