Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support AWS Profiles #85

Closed
wwboynton opened this issue Dec 4, 2018 · 4 comments
Closed

Feature Request: Support AWS Profiles #85

wwboynton opened this issue Dec 4, 2018 · 4 comments

Comments

@wwboynton
Copy link

I might be crazy, but after twenty minutes of googling and doc-diving, I can't find any documentation on how to feed my AWS credentials to jets. It seems like it uses the default creds stored in ~/.aws/credentials, but does not respect AWS_DEFAULT_PROFILE to allow me to, say, deploy my production resources to a different account than my pre-prod resources, which is a really common pattern.

I might just be up late and missing something really obvious, though.

@tongueroo
Copy link
Collaborator

@wwboynton The env var is AWS_PROFILE. Believe AWS_DEFAULT_PROFILE is deprecated. Will add some docs on this.

@tongueroo
Copy link
Collaborator

Here are the AWS docs https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html for now. Example:

~/.aws/credentials:

[default]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

[prod]
aws_access_key_id=AKIAI44QH8DHBEXAMPLE
aws_secret_access_key=je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY

~/.aws/config:

[default]
region=us-west-2
output=json

[profile prod]
region=us-east-1
output=text

To deploy to different accounts:

jets deploy
AWS_PROFILE=prod jets deploy

Should work.

@tongueroo
Copy link
Collaborator

@wwboynton Deploy docs have been updated: http://rubyonjets.com/docs/deploy/ Closing out.

@wwboynton
Copy link
Author

Your promptness and doc update is appreciated :) always great to see ambitious projects that are actually under active development!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants