worried-city-86458
06/24/2020, 10:27 AMconst cluster = new eks.Cluster(
name,
{
deployDashboard: false,
publicSubnetIds: publicSubnetIds,
privateSubnetIds: privateSubnetIds,
instanceRole: instanceRole,
roleMappings: iam.getRoleMappings(),
userMappings: iam.getUserMappings(),
skipDefaultNodeGroup: true,
tags: {
Environment: environment,
EnvironmentType: environmentType,
CostCenter: costCenter
},
version: k8sVersion,
vpcId: vpc.outputs.Vpc
},
{
customTimeouts: {
create: "30m",
update: "30m"
}
}
);
... but I can't find the equivalent of a lot of the above args on ClusterArgs
e.g. how am I supposed to pass role and user mappings? 😕var cluster = new Cluster(name,
new ClusterArgs
{
RoleArn = instanceRole.Arn,
Tags = new Dictionary<string, string>
{
["Environment"] = environment,
["EnvironmentType"] = environmentType,
["CostCenter"] = costCenter
},
Version = k8sVersion,
VpcConfig = new ClusterVpcConfigArgs
{
SubnetIds = publicSubnetIds.Concat(privateSubnetIds).ToArray(),
VpcId = vpc.Outputs["Vpc"]
}
},
new CustomResourceOptions
{
CustomTimeouts = new CustomTimeouts
{
Create = TimeSpan.FromMinutes(30),
Update = TimeSpan.FromMinutes(30)
}
}
);
tall-librarian-49374
06/24/2020, 1:41 PMpulumi-eks
package?worried-city-86458
06/24/2020, 6:53 PMimport * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as eks from "@pulumi/eks";
Yestall-librarian-49374
06/24/2020, 7:45 PMpulumi-eks
package is currently in Node.js only. We are working to bring it to other languages, but it’s not there yet. FWIW, it’s a convenience wrapper around raw provider API, so you can do everything in C# too, but you’ll have to use lower-level APIs.worried-city-86458
06/29/2020, 11:43 PMtall-librarian-49374
06/30/2020, 7:15 AM