Sha256: b4af4b41252f0018b41c8099b15bff122d723634d1362697bc4fb5ae076b2186
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
# Ruby::Terraform A ruby wrapper around terraform. ## Installation Add this line to your application's Gemfile: ```ruby gem 'rake-terraform-wrapper' ``` And then execute: $ bundle Or install it yourself as: $ gem install ruby-terraform ## Usage ```ruby require 'rake-terraform-wrapper' namespace :network do Ruby::Terraform::Tasks::AllTasks.new(:network) do |tf| tf.dir = File.absolute_path("infra/network") tf.backend = 's3' tf.build_dir = 'tmp' # optional. This will copy everything in the `tf.dir` into `build_dir` and execute terraform from this directory tf.backend_config = { bucket: 'some-bucket', key: 'network.tfstate', region: 'us-west-2' } tf.vars = { image_id: 'ami-something', availability_zone_names: ['us-west-2a', 'us-west-2b'] } end end ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec 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](https://rubygems.org). ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/ketan/rake-terraform-wrapper. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rake-terraform-wrapper-0.2.3 | README.md |
rake-terraform-wrapper-0.2.2 | README.md |
rake-terraform-wrapper-0.2.1 | README.md |
rake-terraform-wrapper-0.2.0 | README.md |