Open oscarrenalias opened 8 years ago
I'm really not a fan of us trying to re-use the .aws directory as that's normally handled by some Python magic in the AWS CLI so that part might be stripped out in favour of something less inventive but not as fragile.
Also, I hope those credentials aren't active any more!
Aka redact your credentials before posting on public forums, i.e. don't wave your secret key around in public! :-) On 18 May 2016 12:09 a.m., "Nick Griffin" notifications@github.com wrote:
I'm really not a fan of us trying to re-use the .aws directory as that's normally handled by some Python magic in the AWS CLI so that part might be stripped out in favour of something less inventive but not as fragile.
Also, I hope those credentials aren't active any more!
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/Accenture/adop-docker-compose/issues/71#issuecomment-219880930
No, that API key is no longer valid 😇
Regarding the issue, why not drop this approach and simply force everyone to expose these values as environment variables?
That's the direction I'm heading in. We had that originally and people wanted to use the credentials file but then it turns out there are some cases where people have multiple sets of credentials that it couldn't handle, and it'd also use the contents of the file even if the parameters were provided etc.
I'd happily strip it all out in favour of environment variables and drop the parameters from the script too.
Yeah, I also had an issue with the script using credentials from the file despite the fact that I was providing them as parameters.
The issue of trying to use the stored credentials even when you provide them on the command line is that you're using the bitwise operators (&, |) instead of the logical operators (&&, II) in your compound bash if tests. I'll try to fix and submit a pull request for this if I get time.
If data is present in either ~/.aws/config or ~/.aws/credentials, whatever bash magic is happening in the scripts isn't working. I enabled debug mode in the scripts by adding
#!/bin/bash -ex
at the top to see what's going on, and this is what I get:The version of bash in OS X 10.11 definitely doesn't like whatever is going on.