Include Terraform Plugins in build #2279
Replies: 2 comments 8 replies
-
I think I can run the following in the bundle dockerfile, but is that the right thing todo given the mixin also runs terraform init? |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: I don't use terraform 😀 From Terraform's docs for
Based on feedback from other people using terraform in bundles, I have always thought that was sufficient and that you don't need to do extra commands to ensure that the bundle has all the necessary files locally in order to execute your terraform plans. When you run your bundle using just the default behavior of the terraform mixin (which calls terraform init in the configured directory and optionally using a custom providers file), what is the error that you are seeing that prompted you to look into that other terraform providers mirror command? |
Beta Was this translation helpful? Give feedback.
-
Hi,
Do you have some guidance on how one can include terraform plugins in the bundle (during build time)?
I found this doc from Terraform and it might work if include in the bundle's docker file.
However, I see an issue since
terraform providers mirror
requires an init beforehand to discover local modules. Should I also run terraform init in the bundle's docker file, or do you run it automatically?Any guidance would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions