sparse-intern-71089
04/22/2020, 3:33 PMgorgeous-egg-16927
04/22/2020, 3:34 PMmillions-judge-24978
04/22/2020, 3:38 PMconst privateSubnetIds = pulumi.output(this.vpc.privateSubnetIds);
const publicSubnetIds = pulumi.output(this.vpc.publicSubnetIds);
const subnetIds = pulumi.all([privateSubnetIds, publicSubnetIds]).apply(([publicIds, privateIds]) => {
return [...publicIds, ...privateIds];
});
breezy-hamburger-69619
04/22/2020, 3:39 PMbreezy-hamburger-69619
04/22/2020, 3:40 PMmillions-judge-24978
04/22/2020, 3:41 PMbreezy-hamburger-69619
04/22/2020, 3:42 PMmillions-judge-24978
04/22/2020, 3:44 PMnew eks.Cluster
thoughmillions-judge-24978
04/22/2020, 3:45 PMpublicSubnetIds
and privateSubnetIds
parameters nowbreezy-hamburger-69619
04/22/2020, 3:45 PMbreezy-hamburger-69619
04/22/2020, 3:45 PMsubnetIds
is the previous way of doing it, publicSubnetIds
and privateSubnetIds
are the way forwardmillions-judge-24978
04/22/2020, 3:46 PMbreezy-hamburger-69619
04/22/2020, 3:48 PMbreezy-hamburger-69619
04/22/2020, 3:48 PMmillions-judge-24978
04/22/2020, 3:49 PMmillions-judge-24978
04/22/2020, 3:49 PMmillions-judge-24978
04/22/2020, 3:50 PMbreezy-hamburger-69619
04/22/2020, 3:51 PMmillions-judge-24978
04/22/2020, 3:53 PMmillions-judge-24978
04/22/2020, 4:05 PMpulumi-eks
for it
Error: providerCredentialOpts and an AWS provider instance must be set together
at new Cluster (/Users/tim/workspace/infrastructure/node_modules/@pulumi/cluster.ts:1255:19)
breezy-hamburger-69619
04/22/2020, 4:14 PMproviderCredentialOpts
is a new required opt if bringing in your own provider, as prior the provider was not fully being plumbed through and not being used in the kubectl exec auth command:
• https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/eks/index.html#ClusterOptions-providerCredentialOpts
• Here’s an updated example: https://github.com/pulumi/pulumi-eks/blob/master/nodejs/eks/examples/aws-profile/index.ts
• PR: https://github.com/pulumi/pulumi-eks/pull/367/commits/d06850ed470155779b0e205c7e30e6d8b1708954
• The full list of changes that came into v0.19.0 for p/eks is here: https://github.com/pulumi/pulumi-eks/blob/master/CHANGELOG.md#0190-released-april-20-2020millions-judge-24978
04/22/2020, 4:50 PMmillions-judge-24978
04/22/2020, 4:50 PMmillions-judge-24978
04/22/2020, 4:56 PMproviderCredentialOpts: {}
?. My aws.Provider
is just setting a regionbreezy-hamburger-69619
04/22/2020, 4:59 PMproviderCredentialOpts
is to properly create the kubeconfig per: https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html
As you can see region does not get used there, and is only for the AWS resources.
Since you’re only setting the region and not using credential name profiles or roles, you’re better off using the pulumi config system to set the region using pulumi config set aws:region <your-region>
Here’s the full scope of aws
config options in pulumi: https://www.pulumi.com/docs/intro/cloud-providers/aws/#configurationmillions-judge-24978
04/22/2020, 5:01 PMproviderCredentialOpts: {}
, seems to work correctlybreezy-hamburger-69619
04/22/2020, 5:10 PMproviderCrendentialOpts
for your use case isn’t a true requirement.
For context, we have no great way in p/eks of knowing how the provider is configured given its variance in configurations (e.g. AWS_PROFILE envvar, an AWS provider instance as you’re using, or using the config setting aws:profile)
so providerCrendentialOpts
was primarily aimed at solving the kubeconfig issues to scope it to the options in https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.htmlmillions-judge-24978
04/22/2020, 5:11 PM