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

high-morning-17948

12/03/2021, 5:00 PM
Is there a way to get an existing VPC by its name instead of the ID?
d

delightful-gigabyte-39334

12/03/2021, 5:42 PM
you can filter by tags instead of id, name is exposed as a tag
h

high-morning-17948

12/14/2021, 8:45 PM
What function and arguments you use to filter by tags?
@delightful-gigabyte-39334
d

delightful-gigabyte-39334

12/14/2021, 9:42 PM
dont have any example off hand, but you could use getVPC: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/getvpc/
3 Views