https://pulumi.com logo
Title
b

busy-lion-51883

05/13/2022, 5:32 PM
If I destroy a stack that uses getVpcFromId, will the destroy also include destroying the VPC?
b

billowy-army-68599

05/13/2022, 6:15 PM
nope
2
b

busy-lion-51883

05/13/2022, 6:54 PM
thanks! is that documented somewhere?
b

billowy-army-68599

05/13/2022, 7:30 PM
any get method is a data source, so won't get destroy any infrastructure. https://www.pulumi.com/docs/intro/concepts/resources/get/
A resource read with the get function will never be updated or deleted by Pulumi during an update.
b

busy-lion-51883

05/13/2022, 8:15 PM
thanks!