mammoth-caravan-51104
05/14/2020, 3:33 PMstocky-island-3676
05/14/2020, 3:43 PMpulumi up
.?
Perhaps it’s not that easy. Can you give us context:
1. Are you using the NodeJS-package `@pulumi/eks`?
2. Or another language than TypeScript/JavaScript?mammoth-caravan-51104
05/14/2020, 3:46 PMeks
to setup a cluster, awsx
to setup VPC.
tricky thing is that i need to create vpc before cluster, but subnet needs a cluster name in the tag, so it needs to be updated after cluster is created.
at least this is how i think it is.const vpc = new awsx.ec2.Vpc("xxx", {})
const cluster = new eks.Cluster("xxx", {
vpcId: vpc.id,
subnetIds: vpc.publicSubnetIds,
})
const subnets = vpc.publicSubnets
is there a method to update tags? couldn't find it in the class description: https://github.com/pulumi/pulumi-aws/blob/77e0ff920b7c5506e93aa1564cbe97b77621e377/sdk/nodejs/ec2/subnet.ts#L49stocky-island-3676
05/14/2020, 3:55 PMeks.Cluster(name, {name})
.
subnet needs a cluster name in the tagI don’t know such details. Sorry. Might be good if you then ask in #aws channel.
mammoth-caravan-51104
05/14/2020, 3:59 PMstocky-island-3676
05/14/2020, 4:21 PMlittle-cartoon-10569
05/14/2020, 9:55 PM{ subnets: [ {type: "public", tags: { cluster: "name"}} ]
), and
- eks.Cluster (name).