aws

2022-09-27T18:40:14.618709Z

How can I tell Cider what AWS profile I want to use when I start my repl?

Drew Verlee 2022-09-28T04:02:25.137809Z

i'm confused, whats the overlap between cider and your aws profile?

Drew Verlee 2022-09-28T04:03:17.011539Z

are you speaking generally about your clojure application state choosing an aws profile?

2022-09-28T14:42:50.955379Z

So I want to use named profiles to manage my credentials for different AWS accounts, but when I start cider I don't see an opportunity to set the AWS_PROFILE environment variable as described in the docs: export AWS_PROFILE=user1 the reference is https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html

lukasz 2022-09-28T14:59:12.589989Z

You'll have to do this without using environment variables - for example, the code I'm working on uses a config map to figure out how to connect to given AWS account and get credentials (ECS metadata, profile in ~/.aws/config etc.

2022-09-28T15:29:55.001939Z

@lukaszkorecki so does your code explicitly read ~/.aws/config ?

lukasz 2022-09-28T15:32:50.204439Z

locally yes

lukasz 2022-09-28T15:33:19.427879Z

we use AWS SSO linked with Okta so we need to pull that info from the profile file