UNCLASSIFIED - NO CUI

Skip to content

BB-1271 Fix TF Workspace Deletion

Ismail Ahmad requested to merge BB-874-Fix-Workspace-Deletion into master

What:

  • Adds TF_VAR_env to the pre 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 to pre vars so that all the tf jobs would use the same variable. This was incorrectly being passed to some jobs as different values, causing terraform 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:

image

  • workspaces getting properly deleted:

image

Edited by Ismail Ahmad

Merge request reports