This message was deleted.
# google-cloud
s
This message was deleted.
b
this is what Im doing in my particular case
Copy code
const GCP_PROJECT = pulumi.output(
  gcp.projects.getProject({ filter: `name:${gcpConfig.require("project")}*` }).then((p) => p.projects[0])
);
e
gcp.config.project
works for me (typescript)
👍 1
b
ya, thats going to work for me too! thanks.
🙌 1
Aah
gcp.config.project
doesnt give me the project object with properties such the id so I can take back my forehead slap. Still this is an improvement:
Copy code
gcp.projects.getProject({ filter: `name:${gcp.config.project}*` }).then((p) => p.projects[0])
e
@best-summer-38252 You should also be able to use
gcp.organizations.getProject().then((project) => project.id);