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

rhythmic-megabyte-99595

09/29/2023, 4:03 AM
Howdy folks, I saw this issue is still open, I wonder how do we use pulumi sdk code (python) to get the default VPC?
i

incalculable-motherboard-92742

10/02/2023, 8:36 PM
(I have not tested this) Something to try is following the [example generated by Pulumi AI here](https://www.pulumi.com/ai/conversations/0ab1f74f-d830-4726-a320-0ec4005dcdf8)
r

rhythmic-megabyte-99595

10/03/2023, 10:59 PM
I used this to get the default VPC:
Copy code
ec2.get_vpc(
        default=True,
        opts=pulumi.InvokeOptions(provider=aws_provider),
    )