terraform
terraform copied to clipboard
ensure_gem("terraform") doesn't play well with Bundler
In the Barkeep deploy, we use ensure_gem("terraform")
before running bundle install
. This breaks every time the version of Terraform bumps, because the version of terraform loaded won't match the version in the Gemfile.
Perhaps this will be fixed with a more reasonable terraform loading system (we load terraform from about 3 different places in the Barkeep configuration, sometimes from bundler, sometimes from the written-out DSL file, sometimes via ensure_gem
). I think we need a better example terraform deployment than Barkeep.
I suspect that you never want to have ensure_gem("terraform")
-- I think that you should either require the DSL file, or load it via Bundler.