terratest icon indicating copy to clipboard operation
terratest copied to clipboard

Add option to do terraform init without initializing backend

Open mimadrone opened this issue 3 years ago • 2 comments

I see this was raised before, as issue #318, but as it's a thing I would very much like to have, I've gone ahead and written the patch. This is simply an additional field for the Options structure that allows for passing "-backend=false" for terraform init.

mimadrone avatar Jan 01 '22 00:01 mimadrone

@yorinasub17 Could you retrigger the tests if the failure is a flake or check what needs to be done?

I'd very much like to have this feature so that we can stop using terraform.RunTerraformCommandE everywhere.

If there's anything else that can be done to help out, please let me know.

Edit: I need to correct myself here, with the setup we use (terraform cloud remote backend), we need to generate an override file anyways as we want to override the whole backend config for all commands. The goal here is to use the local backend with terratest, but the remote backend in the configuration (for actual production use).

morremeyer avatar Jan 24 '22 10:01 morremeyer

You need any help on this? @mimadrone we need this as soon as possible. What we are doing now to workaround this issue. is bit ugly. :(

iambalabharathi avatar Jul 30 '22 19:07 iambalabharathi