BB-1271 Fix TF Workspace Deletion
What:
- Adds
TF_VAR_env
to thepre vars
job - Adds
ci_pipeline_url
to the tags of all aws resources created by ci - Runs
tf fmt
Why:
-
TF_VAR_env
was added topre vars
so that all thetf
jobs would use the same variable. This was incorrectly being passed to some jobs as different values, causingterraform workspaces
to stick around and resources to not properly get created or deleted. - By adding
ci_pipeline_url
we can easily go to the pipeline in gitlab-ui to rerun/delete/create jobs that created the infra in aws.
Related Story: BB-1271
Related Images:
- ci_pipeline_url tag on a aws resource:
- workspaces getting properly deleted:
Edited by Ismail Ahmad