forked from cloudfoundry/bosh-bootloader
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run terraform init when plugins are missing
Many environments remove the `./terraform/.terraform` directory from the bbl state directory to reduce the bbl-state size. bbl replaces these plugins on subsequent "up" and "destroy" operations as needed, but as of bbl v9, these plugins are also required for "bbl outputs" and "bbl jumpbox-address" commands. This change runs "terraform init --upgrade" when terraform outputs are requested and the terraform/.terraform directory is missing. This allow environments to omit the .terraform directory to still reduce the bbl-state size and also supports consuming bbl-state across different architectures (e.g. linux <=> darwin) without having to manually run "terraform init".
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters