An open API service indexing awesome lists of open source software.

https://github.com/igr/awscfg

Just a rusty tool to parse aws config and get specific data from it.
https://github.com/igr/awscfg

Last synced: about 1 month ago
JSON representation

Just a rusty tool to parse aws config and get specific data from it.

Awesome Lists containing this project

README

          

# AWS Config file parser

Sometimes you need informations from the config file.

## Usage

```shell
awscfg arn --profile $profile
```

Resolves ARN from the AWS profile that is configured to use `weep`. Usage:

```shell
profile=foo-name

aws --profile $profile sts get-caller-identity
arn=$(awscfg arn --profile $profile)
cmd=$(weep export $arn)
cmd=${cmd//"set -gx"/"export"}
cmd=${cmd//" \""/=\"}

eval $cmd
```