Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide access to an instance's region from metadata #392

Open
prefanatic opened this issue May 12, 2023 · 1 comment · May be fixed by #399
Open

Provide access to an instance's region from metadata #392

prefanatic opened this issue May 12, 2023 · 1 comment · May be fixed by #399
Labels
kind/enhancement New feature or request pkg:gcp

Comments

@prefanatic
Copy link

I've found myself carrying around a method to derive a region from metadata.google.internal. It's fairly analogous to projectIdFromMetadataServer from package:gcp

Usage of this method looks like:

final location = await locationFromMetadataServer();
print(location);
...
// Outputs: us-central1

I've scanned through a couple other issues, it looks like #123 is somewhat related, although is potentially larger in scope.

Would this be a welcome contribution, to be added to package:gcp?

@kevmoo
Copy link
Collaborator

kevmoo commented May 17, 2023

Something for pkg:gcp sounds good to me!

@kevmoo kevmoo added kind/enhancement New feature or request pkg:gcp labels May 17, 2023
@prefanatic prefanatic linked a pull request Jun 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request pkg:gcp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants