Skip to content

Conversation

@powdahound
Copy link

This changes the format of the ~/.aws/credentials file to match the format used by the current aws cli tools: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files

This changes the format of the ~/.aws/credentials file to match the format used by the current aws cli tools: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files
@pda
Copy link
Owner

pda commented Jul 17, 2015

Thanks Garret.

I've just realized I've been using it for a while with this uncommitted patch:

diff --git a/aws-keychain b/aws-keychain
index 5cbe692..c683662 100755
--- a/aws-keychain
+++ b/aws-keychain
@@ -116,9 +116,11 @@ aws_keychain_format_credentials() {
   local id="$1"
   local secret="$2"
   cat <<END
-[Credentials]
+[default]
 AWSAccessKeyId=$id
+aws_access_key_id=$id
 AWSSecretKey=$secret
+aws_secret_access_key=$secret
 END
 }

Do you think that'd work for you?
I'd be worried that dropping the AWSAccessKeyId and AWSSecretKey completely might break some older AWS tools.

@powdahound
Copy link
Author

👍

Thanks for this tool btw - very helpful

@powdahound powdahound closed this Jul 17, 2015
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

Successfully merging this pull request may close these issues.

2 participants