HomePhabricator
Diffusion Comm b0729e01eb14

[services] Tunnelbroker - Get AWS region from aws/config only.

Description

[services] Tunnelbroker - Get AWS region from aws/config only.

Summary:
Switch to use the AWS region from ~/.aws/config file instead of looking it at the ~/.aws/credentials first.
The main reason for that, AWS CLI sets the region inside the ~/.aws/config file and we need both config and credentials to follow the AWS CLI approach.

Linear task: ENG-559

Test Plan:
Tunnelbroker successfuly connect to AWS using ~/.aws/credentials for credentials and ~/.aws/config for the region:

cat ~/.aws/config
[default]
region = us-east-2

cat ~/.aws/credentials
[default]
aws_access_key_id = .....
aws_secret_access_key = .....

Reviewers: karol-bisztyga, palys-swm, varun, jimpo, ashoat

Reviewed By: karol-bisztyga, jimpo, ashoat

Subscribers: benschac, ashoat, palys-swm, Adrian, atul, karol-bisztyga

Differential Revision: https://phabricator.ashoat.com/D3119

Details

Provenance
maxAuthored on Feb 11 2022, 2:27 PM
Reviewer
karol
Differential Revision
D3119: [services] Tunnelbroker - Get AWS region from aws/config only.
Parents
rCOMM1a21b8f48a42: [web] [fix] thread thread moves on hover
Branches
Unknown
Tags
Unknown