Fork me on GitHub
#aws
<
2017-07-11
>
sb10:07:01

Hello, I would like to use first the Amazonica, how to add credentials … ?

sb11:07:39

If I try to cat from source cat ~/.aws/credentials .. everything ok. What could be the problem?

sb11:07:13

Could I give manually the credentials?

sb11:07:33

(without aws cli)

ballpointcarrot15:07:10

@sb check out https://github.com/mcohen01/amazonica#authentication - you can define a auth/config map, and pass that as the first argument to a call to a service, and that’ll use the provided creds.

ballpointcarrot15:07:45

That said, if you’ve got them stored in .aws/credentials, they should be able to be read automatically without passing them (generally better, so that you’re not storing creds in your code)

sb16:07:23

In remote mode not, I read a topic about (kinesis). Thx the help.

candiedcode17:07:57

I'm not sure what you mean by "In remote mode not"

candiedcode17:07:01

so here's a note I have in one of my projects. I use IAM roles in production to get AWS credentials

candiedcode17:07:38

but If I am running locally,

candiedcode17:07:34

i set AWS environment variables

candiedcode17:07:38

just an fyi incase anyone is interested, if you have multiple AWS profiles and you want to use your .credentials file

sb09:07:14

sorry, i see just now your response

sb09:07:23

I switched computers.. and flag like read this channel. Thanks for your responses! I solved this via API setup.

candiedcode17:07:10

AWS_PROFILE="integrated" lein run works as well