Coder Social home page Coder Social logo

Comments (5)

philss avatar philss commented on August 18, 2024 1

@dynnamitt Interesting. I didn't know about this config file. Please go ahead if you to submit a PR :)

from aws-elixir.

jadeallenx avatar jadeallenx commented on August 18, 2024 1

That's literally why this library exists.

from aws-elixir.

pranavraja avatar pranavraja commented on August 18, 2024 1

I've run into the need to parse ~/.aws/credentials files as well, including assuming roles via the source_profile property, and usually end up writing a helper function like in https://gist.github.com/pranavraja/f3585456d02216eba40dfc2605570935

from aws-elixir.

aleDsz avatar aleDsz commented on August 18, 2024 1

@dynnamitt I'll open a PR based on your project (dynnamitt/ex_aws_cconf#1) to aws_credentials, which already support multiple profiles, but only via application env/erlang env. This is debatable on how this application should handle these configurations, but we should be able to read the sabe profile for both files.

The code is here: https://github.com/aleDsz/aws_credentials/tree/ale-support-aws-config-file

I'm probably missing something from ~/.aws/config file, but I'll be reading more about and updating my code. Some feedback would be awesome ❤️

from aws-elixir.

dynnamitt avatar dynnamitt commented on August 18, 2024

That's literally why this library exists.

"aws_credentials" would solve some parts of it yes, but (there is always a but):

  1. no ~/.aws/config provider
    profiles here can trigger new sts "credential request" via either:
    - mfa_serial (tricky interactive stuff)
    - assume-role (role_arn)
    - sso
  2. no hex.pm publishing

I'm just learning Elixir ... writing a config provider in Erlang isn't an option for me

I'll see what I can cook up (in elixir) , on a path of reading other SDKs currently

from aws-elixir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.