github suzuki-shunsuke/tfcmt v2.0.0

latest releases: v4.9.0, v4.9.0-2, v4.9.0-1...
2 years ago

v1.1.0...v2.0.0
Milestone

BREAKING CHANGE

#115 #108 No variable becomes embedded in comment by default
#110 #111 The configuration terraform.plan.when_destroy.template is removed

No variable becomes embedded in comment by default

#115 #108

tfcmt embedds the metadata into the comment to hide the comment by the metadata.
With tfcmt v1, all variables are embedded into the comment, but sometimes this behaviour is undesirable.
With tfcmt v2, only variables specified by embedded_var_names are embedded into the comment.

embedded_var_names:
- name

The configuration terraform.plan.when_destroy.template is removed

#110 #111

The configuration terraform.plan.when_destroy.template is removed.
When there are destroyed resources, the template terraform.plan.template is used.
The template variable HasDestroy is added, so using the variable you can unify the template.

terraform:
  plan:
    template: |
      {{if .HasDestroy}}{{template "deletion_warning" .}}{{end}}

Feature

#115 #108 Add The configuration embedded_var_names
#110 #111 Add the template variable HasDestroy

Don't miss a new tfcmt release

NewReleases is sending notifications on new releases.