Skip to content

Suggest an enhancement: use the region of the default profile in file "config" #1

@james-hu

Description

@james-hu

I found this very handy:

       export AWS_PROFILE=$1;
       thisProfileRegion=$(aws configure get region --profile $1);
       defaultProfileRegion=$(aws configure get region --profile default);
       export AWS_REGION=${thisProfileRegion:-$defaultProfileRegion};

So that I only need to define region in the "config" file once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions