hey yall - i'm trying to create a new GCP project ...
# google-cloud
e
hey yall - i'm trying to create a new GCP project then create a VPC within that project. However, when i'm creating a VPC, it doesn't seem to be able to find my project. Any thoughts? code in thread
Copy code
vpc_network = gcp.compute.Network(config["name"],
            opts=pulumi.ResourceOptions(depends_on=[gcp_project, service_apis]),
            auto_create_subnetworks=config["autoCreateSubnet"],
            delete_default_routes_on_create=config["deleteDefaultRoutes"],
            project=gcp_project.name,
            routing_mode="GLOBAL")
Copy code
gcp:compute:Network (test-vpc):
    error: 1 error occurred:
    	* Error creating Network: googleapi: Error 404: The resource 'projects/bngo-e9554a9' was not found, notFound
gcp_project is just an instance of the pulumi project object. i'm wondering if the
projects/
is causing issues. if log into the gcp console, the project
bngo-e9554a9
exists
w
I believe you’re right about the
projects/
bit causing the issue. I think the
project_id
property contains the
bngo-e9554a9
part which is what that
project
input is looking for.
e
i think that's it. thanks mitch! just need to confirm