Update valet-custom-transformers-lab.md

This commit is contained in:
j-dunham
2022-08-12 14:01:49 -04:00
committed by GitHub
parent 7b8bc68962
commit 6ce0fb2f23
+1 -1
View File
@@ -1,5 +1,5 @@
# Using Custom Transformers in a `dry-run`
In this lab we want to do a `dry-run` of the `terraform-example` project. Since we have already taken the `dry-run` lab we easily run the command and generate the GitHub workflow, but to our dismay Valet did not know how to transform the artifact report for Terraform and it shows as unsupported. After some research we determine that the action `actions/upload-artifact` would be an adequate substitute for it. This change will also require we to change the environment variable `PLAN_JSON` to point to a new value `custom_plan.json`. This change needs to be make in many pipelines and automated way to apply this would be ideal. Well, we are in luck we can use the `--custom-transformers` option of the `dry-run` command. This will allow us to change the behavior of Valet using a simple ruby file.
In this lab we want to do a `dry-run` of the `terraform-example` project. Since we have already taken the `dry-run` lab we easily run the command and generate the GitHub workflow, but to our dismay Valet did not know how to transform the artifact report for Terraform and it shows as unsupported. After some research we determine that the action `actions/upload-artifact` would be an adequate substitute for it. This change will also require us to change the environment variable `PLAN_JSON` to point to a new value `custom_plan.json`. We need to make this change in many pipelines and a automated way to apply this would be ideal. Well, we are in luck we can use the `--custom-transformers` option of the `dry-run` command. This will allow us to change the behavior of Valet using a simple ruby file.
- [Prerequisites](#prerequisites)
- [Run without Custom Transformers](#run-without-custom-transformers)