puppetlabs / puppetlabs-terraform

Bolt Terraform plugin
Apache License 2.0
6 stars 20 forks source link

Add simple initialization task #12

Closed ody closed 4 years ago

ody commented 4 years ago
Commit adds a simple task for initializing a Terraform project
direct to facilitate end-to-end Bolt driven workflows that ship
and leverage Terraform content for automated infrastructure
creation
donoghuc commented 4 years ago

I had thought about this task when writing integration tests. I think we should use it there for example https://github.com/puppetlabs/puppetlabs-terraform/blob/5dc47c658e0216ea54700cdc9f3b251d642605c4/spec/integration/apply_spec.rb#L15-L19

ody commented 4 years ago

That also crossed my mind. I'll check it out real quick.

ody commented 4 years ago

@donoghuc, see anything I am missing? Tests pass locally.

ody commented 4 years ago

@donoghuc Had to switch to just checking for .terraform existence, no CLI command was consistent enough to base a decision on