diff --git a/pkg/terraform/build.go b/pkg/terraform/build.go index 4ca0cf6..e1a7775 100644 --- a/pkg/terraform/build.go +++ b/pkg/terraform/build.go @@ -33,8 +33,9 @@ EOF {{ end }} RUN cd $BUNDLE_DIR/{{.WorkingDir}} && \ terraform init -backend=false && \ - rm -fr .terraform/providers && \ - terraform providers mirror /usr/local/share/terraform/plugins + mkdir -p /usr/local/share/terraform/plugins/ && \ + cp -r .terraform/providers/* /usr/local/share/terraform/plugins/ && \ + rm -fr .terraform/providers ` // BuildInput represents stdin passed to the mixin for the build command.