GithubHelp home page GithubHelp logo

a2ikm / aws_config Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 4.0 34 KB

AWSConfig is a parser for AWS_CONFIG_FILE used in aws-cli

Home Page: http://rubygems.org/gems/aws_config

License: MIT License

Ruby 100.00%

aws_config's Introduction

aws_config's People

Contributors

a2ikm avatar kierranm avatar muramasa64 avatar okapies avatar robuye avatar thermistor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aws_config's Issues

Support profile chains via `source_profile` properties

In the AWS CLI config it is possible to chain together profiles like so:

Shared Credentials

[default]
aws_access_key_id=AKIA2873523GGFAKJSGHF28
aws_secret_access_key=jf39try2o3fn029fy2kj3hf9wy3rh89f234f

CLI Config

[default]
aws_region=ap-southeast-2
role_arn=arn:example:28971549829384
source_profile=default

[profile testing]
aws_region=us-west-2
source_profile=default

aws_config should follow source profiles so that if you query the testing profile, all of the appropriate information from the chain of source profiles should be available (at least the stuff that hasn't been overwritten)

Given the two config files above the expected profile that aws_config should provide would then be equivalent to this singular profile:

[profile example]
aws_access_key_id=AKIA2873523GGFAKJSGHF28
aws_secret_access_key=jf39try2o3fn029fy2kj3hf9wy3rh89f234f
role_arn=arn:example:28971549829384
aws_region=us-west-2

Support AWS CLI Nested Properties

Amazon in all their mighty wisdom decided that it would be a good idea to allow you to nest properties like so:

[default]
region=ap-southeast-2
s3=
    max_concurrent_requests=100101
    max_queue_size=20

While this is a pretty cool for not having to repeatedly type s3_ in front of everything it completely goes against the INI file standard, and makes parsing it rather annoying. Even so, we should still support it.

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.