Hi guys! I have a question... I want to migrate my...
# typescript
a
Hi guys! I have a question... I want to migrate my existing vpc created with aws.ec2.vpc to awsx.ec2.vpc ... somebody could help me?
b
Hi @adamant-translator-31969, maybe you can try something like:
Copy code
awsx.ec2.Vpc.fromExistingIds(`${name}-vpc`, { vpcId: myexistingVpcId });
a
Thanks @broad-dog-22463 I will try it!
@broad-dog-22463 I have a question.... will this method create a new vpc? because I already have "vpc-id" created
b
Shoot
I believe this will effectively run a get to build a vpc object
But the preview will tell you that
a
ok! Thanks for your help @broad-dog-22463! 😄
👍 1
@broad-dog-22463 metod
awsx.ec2.vpc.fromExistingId
doesn't return my routes associated to my subnets . 😕