Coder Social home page Coder Social logo

Support multiple sources about bridgy HOT 2 CLOSED

wagoodman avatar wagoodman commented on September 28, 2024
Support multiple sources

from bridgy.

Comments (2)

wagoodman avatar wagoodman commented on September 28, 2024 1

@bootswithdefer I don't have multiple aws accounts to try this out on, however, the changes have passed everything else I could try out. You'll need to update your ~/.bridgy/config.yml to a list of sources to make use of this update (the old config schema is also still supported):

inventory:
  source:

    - type: csv
      name: some.csv
      fields: name, address, otherthings
      delimiter: '|'

    - type: aws
      # ~/.aws/* configs will be referenced

    - type: aws
      access_key_id: some-id
      secret_access_key: some-key
      session_token: some-token
      region: us-west-2

This way you can reference multiple aws accounts, one listed in your aws config and the other listed manually (or list them both manually, etc...).

I just uploaded v0.1.0 of bridgy that has this feature, update it and give it a shot. Open up a new issue if you discover something is amiss.

from bridgy.

wagoodman avatar wagoodman commented on September 28, 2024

stellar idea, I'll take a closer look at that tonight.

At first glance the multiple inventory source seems like a low level of effort, however, duplicating source types (such as multiple AWS accounts) may need a larger refactor. I can probably make an InventorySet object that combines multiple inventory sources (irregardless of type) but that wouldn't solve the configuration object, which only knows about one instance of each inventory type --the config will most likely need to be modified to accept a list of various inventory sources instead of a map.

from bridgy.

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.