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.
- Host: GitHub
- URL: https://github.com/igr/awscfg
- Owner: igr
- License: bsd-2-clause
- Created: 2022-09-06T09:37:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-06T12:24:21.000Z (almost 4 years ago)
- Last Synced: 2025-10-23T20:50:43.378Z (10 months ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```