rhythmic-megabyte-99595
09/30/2023, 2:39 PMdisable-default-providers: *
), it seems there's no way to config the aws provider for _pulumi_eks_. The old-school way (opts=pulumi.ResourceOptions(provider=provider
) does not work as the provider in opts here refers to the K8S provider. So I will got this error:
Exception: Default provider for 'eks' disabled. 'eks:index:Cluster' must use an explicit provider.
Any help is appreciated for this matter!!ancient-policeman-24615
10/02/2023, 3:26 PMopts=pulumi.ResourceOptions(provider=eksProvider, providers=[awsProvider, k8sProvider])
.
provider
is used to provision the resource that opts
is being directly passed to, while providers
is used to provision matching child resources.rhythmic-megabyte-99595
10/03/2023, 10:25 PMproviders
only, but still get this error message:ancient-policeman-24615
10/03/2023, 10:27 PMeksProvider
is the provider associated with `pulumi_eks`: https://www.pulumi.com/registry/packages/eks/api-docs/provider/rhythmic-megabyte-99595
10/03/2023, 10:51 PMkube_provider = kube.Provider("kubeProvider", kubeconfig="./kubeconfig")
eks_provider = eks.Provider("eks")
...
test_cluster = eks.Cluster(
name=f"test_{cluster_name}",
resource_name="test-cluster-resource",
...
vpc_id=default_vpc.id,
opts = pulumi.ResourceOptions(provider=eks_provider, providers=[aws_provider, kube_provider]),
)
Exception: Invoke: Default provider for 'aws' disabled. 'aws:index/getPartition:getPartition' must use an explicit provider.
ancient-policeman-24615
10/04/2023, 1:03 AMtest_cluster
, then that is a bug in pulumi-eks
. Sorry about that.