https://pulumi.com logo
#general
Title
# general
e

enough-animal-75031

11/22/2021, 11:01 PM
@polite-napkin-90098 You need to import all the subnets individually if you're putting EKS onto existing subnets: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/subnet/#import
p

polite-napkin-90098

11/23/2021, 2:14 PM
Thanks Jack, I'll have a look at that. I 'solved' my problem by just specifying the subnet ids in vars in my code, not very elegant, but I have a need for speed at the moment. When I revisit the code I'll look at importing the subnets.
e

enough-animal-75031

12/28/2021, 11:58 PM
@polite-napkin-90098 Late reply but that`s a better way anyway imo, otherwise you have a bunch of protected state that is a pain in the arse when you're trying to destroy things
👍 1
p

polite-napkin-90098

12/31/2021, 2:46 PM
With this now, the subnet ids are specified as Configuration Values in the stack. I expect I will move to managing the subnets with Pulumi at some point and then will only need to provide a VPC id as a Configuration Value.
3 Views