infrablocks / ruby_terraform

A simple Ruby wrapper for invoking terraform commands.
MIT License
109 stars 33 forks source link

Add support for -force-copy to the init command #19

Closed kief closed 5 years ago

kief commented 5 years ago

(Pull request on its way)

I want to be able to add the '-force-copy' argument to the terraform init command, so I can copy local state to remote backend when switching the backend.

I'm using this to bootstrap the creation of infrastructure used for remote state, by creating it initially with local state.

tobyclemson commented 5 years ago

PR merged, will push a release shortly.

Am I right in thinking this will allow you to store the state file of the backend in the backend itself? If so, that's very nice :)

kief commented 5 years ago

Yep, that's the plan!

On Mon, Nov 19, 2018 at 7:25 PM Tobias Clemson notifications@github.com wrote:

PR merged, will push a release shortly.

Am I right in thinking this will allow you to store the state file of the backend in the backend itself? If so, that's very nice :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/infrablocks/ruby_terraform/issues/19#issuecomment-440012139, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbqSO7hwU1yAPE6dqntGNbyLMHAdaxiks5uwwWmgaJpZM4YpZco .

--

http://oreil.ly/1JKIBVe

My book, Infrastructure as Code http://oreil.ly/1JKIBVe, is available now!

tobyclemson commented 5 years ago

Version 0.18.0 contains this change.

kief commented 5 years ago

Thanks!

On Mon, Nov 19, 2018 at 7:30 PM Tobias Clemson notifications@github.com wrote:

Version 0.18.0 contains this change.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/infrablocks/ruby_terraform/issues/19#issuecomment-440013845, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbqSLWOOS_wEqViztk7sLgV2VY0uK_Dks5uwwblgaJpZM4YpZco .

--

http://oreil.ly/1JKIBVe

My book, Infrastructure as Code http://oreil.ly/1JKIBVe, is available now!