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

worried-queen-40276

06/01/2022, 3:51 PM
Hello All, How can I get the oidcProvider for aws eks in python? I saw the equivalent code in
.ts
is
Copy code
// Create a Kubernetes cluster.
const cluster = new eks.Cluster('mlplatform-eks', {
  createOidcProvider: true,
});

cluster.core.oidcProvider.arn
cluster.core.oidcProvider.url
However, I do not see any exposed method for python? Am I missing something? I can do the same thing from aws cli but I need to do it programmatically from within pulumi to create components for another assume-policy component.
Copy code
aws eks describe-cluster --name mlp-mlops-eksCluster-c2aab22 --query "cluster.identity.oidc.issuer" --output text
Copy code
<https://oidc.eks.us-west-1.amazonaws.com/id/ABCFDRREJJKJEFBD0D4EABB3D90A>
Copy code
aws iam list-open-id-connect-providers | grep ABCFDRREJJKJEFBD0D4EABB3D90A
Copy code
"Arn": "arn:aws:iam::XXXXXXX:oidc-provider/oidc.eks.us-west-1.amazonaws.com/id/ABCFDRREJJKJEFBD0D4EABB3D90A"
8 Views