GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Can we make gcloud-node auto-detect the projectId if it's in a special environment? · Issue #974 · googleapis/google-cloud-node

Can we make gcloud-node auto-detect the projectId if it's in a special environment? #974

New issue
Copy link
New issue
Copy link
Closed
Closed
Can we make gcloud-node auto-detect the projectId if it's in a special environment?#974
Copy link
Assignees
stephenplusplus
Labels
core

Description

@jgeewax
jgeewax
opened on Nov 30, 2015
Issue body actions

Special environment = Compute Engine or App Engine via Managed VMs?

Activity

  1. stephenplusplus commented on Nov 30, 2015

    @stephenplusplus
    stephenplusplus
    on Nov 30, 2015
    Contributor
    More actions

    App Engine via Managed VMs

    I believe so, because it's available as an env var, right? GAE_LONG_APP_ID, possibly.

    Compute Engine

    I believe you have to hit the metadata server, which complicates this for us, as that is an async operation.

    We talked about this in #570 (shortcut: #570 (comment)).

    What we came up with was... for the same code to go from a dev environment where a project ID will always be required (can't be autodetected) to a production requirement (where it can be autodetected), the user would already have been providing the project ID in dev, only to remove it when pushing to production for the benefit of magic autodetection.

    So the resolution was to just require it explicitly, but honor a generic env var "GCLOUD_PROJECT_ID". I'm not sure what happened to that... I don't think we ever did honor that env var or document it. But then this issue came along, and afaik, it doesn't look like we decided on one yet?

    If we can agree on just a single env var like "GCLOUD_PROJECT_ID", do you still think that's a good way to go for all the reasons we discussed in #570?

  2. stephenplusplus
    added
    core
    on Nov 30, 2015
  3. jgeewax commented on Nov 30, 2015

    @jgeewax
    jgeewax
    on Nov 30, 2015
    ContributorAuthor
    More actions

    Effectively we're saying to run this to start your app, and this problem goes away, right ?

    $ export GCLOUD_PROJECT=`curl -L http://metadata.google.internal/computeMetadata/v1beta1/project/project-id`
    $ node
  4. stephenplusplus commented on Nov 30, 2015

    @stephenplusplus
    stephenplusplus
    on Nov 30, 2015
    Contributor
    More actions

    Yeah that would definitely work (naming of "GCLOUD_PROJECT" tbd).

  5. jgeewax commented on Nov 30, 2015

    @jgeewax
    jgeewax
    on Nov 30, 2015
    ContributorAuthor
    More actions

    Sure -- I think that was the latest proposal in that issue on gcloud-common-private.

  6. stephenplusplus commented on Nov 30, 2015

    @stephenplusplus
    stephenplusplus
    on Nov 30, 2015
    Contributor
    More actions

    Okay cool, I'll get that supported asap!

  7. stephenplusplus
    self-assigned this
    on Nov 30, 2015
  8. callmehiphop
    closed this as completedin #978on Dec 1, 2015
  9. sofisl
    added 3 commits that reference this issue on Jan 17, 2023

    docs(node): support "stable"/"preview" release level (#1312) (#974)

    854b04e

    chore(deps): update dependency jsdoc to v4 (#974)

    d92285b

    chore(deps): update dependency jsdoc to v4 (#974)

    10f255d
  10. miguelvelezsa
    added a commit that references this issue on Jul 23, 2025

    chore: release 2.11.3 (#974)

    1ad7fec
  11. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    fix: allow passing gax instance to client constructor (#974)

    d5c4ea6
  12. sofisl
    added 2 commits that reference this issue on Feb 3, 2026

    build: auto-approve renovate-bot PRs for minor updates (#1145) (#974)

    d755e2e

    fix: allow passing gax instance to client constructor (#974)

    056d86e
  13. sofisl
    added a commit that references this issue on Feb 17, 2026

    fix: allow passing gax instance to client constructor (#974)

    99d2b02
  14. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    docs: mention templates in contributing section of README (#974)

    4e6ee09

    fix: do not modify constructor options (#974)

    baf54a4
  15. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    docs: add instructions for authenticating for system tests (#974)

    9f99a5e
  16. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    fix: do not modify constructor options (googleapis#974)

    ed23801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.