0.0
No commit activity in last 3 years
No release in over 3 years
SSM adapter for knowledge gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
>= 0.12
~> 10.0
~> 3.0
>= 0.60

Runtime

>= 0.1.3
 Project Readme

Knowledge Ssm

This is the official AWS SSM adapter for knowledge gem.

Disclaimer

The full documentation is currently being written. You should be able to find a better documentation in a few hours or days.

Waiting for the full documentation, you can have a look at the code which is already well-documented.

Have a look to the wiki too.

Installation

Add this line to your application's Gemfile:

gem 'knowledge-ssm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install knowledge-ssm

Dependencies - Aws SDK

As AWS SDK version 2 and 3 have the same API, it has been dropped from the gem to allow developers using the version they want.

Using version 2:

AWS official documentation for SDK v2

# Add the SDK to your Gemfile
gem 'aws-sdk', '~> 2.0'

# And then Knowledge SSM adapter
gem 'knowledge-ssm'

Using version 3:

AWS official documentation for SDK v3

# You can add all the SDK
gem 'aws-sdk', '~> 3'

# Or just the service you need
gem 'aws-sdk-ssm', '~> 1'

# And then Knowledge SSM adapter
gem 'knowledge-ssm'

Usage

require 'knowledge/ssm'
  
knowledge = Knowledge::Learner.new
knowledge.variables = { ssm: { my_secret: 'path/to/secret' } }
  
knowledge.use(name: :ssm)
knowledge.add_adapter_params(adapter: :ssm, params: { root_path: '/project' })
  
knowledge.gather!
  
Knowledge::Configuration.my_secret # "Secret value"

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/knowledge-ruby/knowledge-ssm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Code of Conduct

Everyone interacting in the Knowledge::Ssm project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Licensing

This project is licensed under GPLv3+.

You can find it in LICENSE.md file.