This message was deleted.
# general
s
This message was deleted.
w
Should I set environment variables at runtime?
b
You should be able to create a custom provider configuration and then use that one.
For example, I'm creating an AWS EKS cluster and then I want to use the Kubernetes provider on that cluster:
Copy code
eks_cluster = aws.eks.Cluster(...)

kubernetes_provider = kubernetes.Provider(..., cluster_name=eks_cluster)

kubernetes.SOME_RESOURCE(..., opts=pulumi.ResourceOptions(provider=kubernetes_provider))
Something like this.
The trick is the opts=pulumi.ResourceOptions
w
thanks, i'll try this!
l
Also, if you create an AWS PostgreSQL RDS setup, the Pulumi process creating the psql provider which creates the database needs direct TCP access offcourse. I usually run this in a stack from a CI worker within my VPC.
👍 1