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

feat: get AWS region from environment variable #1067

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

wvanderdeijl
Copy link
Contributor

This gets the AWS region from the environment variable AWS_REGION as an alternative to invoking the AWS metadata service which is not available on all AWS products (such as Lambda)

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary): there doesn't seem to be any documentation (yet?) about using AWS_* env vars

Fixes #1066 🦕

@wvanderdeijl wvanderdeijl requested a review from a team as a code owner October 7, 2020 10:08
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 7, 2020
@codecov
Copy link

codecov bot commented Oct 7, 2020

Codecov Report

❗ No coverage uploaded for pull request base (byoid@317b1d2). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             byoid    #1067   +/-   ##
========================================
  Coverage         ?   93.74%           
========================================
  Files            ?       28           
  Lines            ?     6215           
  Branches         ?      658           
========================================
  Hits             ?     5826           
  Misses           ?      389           
  Partials         ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 317b1d2...dbf851b. Read the comment docs.

@bcoe
Copy link
Contributor

bcoe commented Oct 8, 2020

@wvanderdeijl thank you for the contribution 👏 , I'm going to let @bojeil-google sign off on this patch, as they've been technical lead on BYOID.

Copy link
Contributor

@bojeil-google bojeil-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for contributing with the fix @wvanderdeijl!

@bcoe bcoe merged commit 8f657ce into googleapis:byoid Oct 8, 2020
@wvanderdeijl wvanderdeijl deleted the byoid-aws-region-env-var branch October 8, 2020 14:44
bcoe added a commit that referenced this pull request Feb 6, 2021
feat: implements the OAuth token exchange spec based on rfc8693 (#1026)
feat: defines ExternalAccountClient abstract class for external_account credentials (#1030)
feat: adds service account impersonation to `ExternalAccountClient` (#1041)
feat: defines `IdentityPoolClient` used for K8s and Azure workloads (#1042)
feat: implements AWS signature version 4 for signing requests (#1047)
feat: defines `ExternalAccountClient` used to instantiate external account clients (#1050)
feat!: integrates external_accounts with `GoogleAuth` and ADC (#1052)
feat: adds text/json credential_source support to IdentityPoolClients (#1059)
feat: get AWS region from environment variable (#1067)
Co-authored-by: Wilfred van der Deijl <wilfred@vanderdeijl.com>
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants