99designs / iamy

A cli tool for importing and exporting AWS IAM configuration to YAML files
MIT License
238 stars 24 forks source link

Support AWS CLI --profile #43

Open bhdicaire opened 6 years ago

bhdicaire commented 6 years ago

To the best of my knowledge, it's currently impossible to identify which profile stored in ~/.aws/credentials to use with iamy.

I'll recommend to include profile as pull and push sub parameter to support AWS CLI --profile.

pda commented 6 years ago

This will require a fair bit of internal change;

Instead, you could set AWS_PROFILE in your environment, and aws-sdk-go will pick it up from there as per https://godoc.org/github.com/aws/aws-sdk-go/aws/session#hdr-Creating_Sessions

AWS_PROFILE=foo iamy pull --delete