Add Terraform module for multi-environment deployments#35
Merged
Conversation
799a7a6 to
94af3c8
Compare
mod_info.mk: - Module metadata (v1.0.0, no dependencies) mod_config.mk: - tf_bin, tf_env_dir, tf_shared_vars configuration - tf_auto_approve_envs for environment-specific auto-approve - tf_destroy_confirm for destroy operation safety - tf_chdir_flag for terraform 0.14+ compatibility terraform.mk: - tf_build_chdir: Build -chdir argument - tf_build_var_file: Build -var-file argument - tf_is_auto_approve_env: Check if env allows auto-approve - tf_run: Execute terraform command (auto-includes shared vars if set) - Pattern targets: init, plan, apply, destroy, validate, output, state/list, refresh - Utility targets: fmt, fmt/check, version terraform_test.mk: - 14 tests, 33 assertions covering all functions
94af3c8 to
e7ba011
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New
terraformmodule providing reusable workflow automation for multi-environment Terraform deployments.Features
tf_bin,tf_env_dir,tf_shared_vars,tf_auto_approve_envs,tf_destroy_confirm,tf_chdir_flagtf_run,tf_run_vars,tf_build_chdir,tf_build_var_file,tf_is_auto_approve_envterraform/init/%,terraform/plan/%,terraform/apply/%,terraform/destroy/%,terraform/validate/%,terraform/output/%,terraform/state/list/%,terraform/refresh/%terraform/fmt,terraform/fmt/check,terraform/versionUsage
Test plan
make test=terraform- 15 tests, 36 assertions passmake- 63 tests, 142 assertions passCloses Trello card: https://trello.com/c/zvPHcUfv