Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

feat: get AWS region from environment variable - #1067

Merged
bcoe merged 1 commit into
googleapis:byoidfrom
wvanderdeijl:byoid-aws-region-env-var
Oct 8, 2020
Merged

bcoe merged 1 commit into
googleapis:byoidfrom
wvanderdeijl:byoid-aws-region-env-var

Conversation

@wvanderdeijl

Copy link
Copy Markdown
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 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

codecov Bot commented Oct 7, 2020 •

Copy link
Copy Markdown

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

bcoe commented Oct 8, 2020

Copy link
Copy Markdown

@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.

@bojeil-google bojeil-google left a comment

Copy link
Copy Markdown
Contributor

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 pushed 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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