Jan Dittrich activity https://gitlab.com/jan-di 2023-08-06T00:09:19Z tag:gitlab.com,2023-05-11:2584406703 Jan Dittrich opened issue #106: Ability to apply without plan at GitLab.org / Terraform Images 2023-05-11T12:55:58Z jan-di Jan Dittrich [email protected]

We have usecases where we want to Apply Terraform Modules directly, without creating a dedicated plan before (the behaviour when you just run terraform applyvia CLI and get an impicit plan).

Currently the use the following workaround to do this:

variables:
  TF_PLAN_CACHE: --auto-approve

By overwriting the TF_PLAN_CACHE with any valid paramter, terraform just creates an implicit plan and executes it.

What is the problem with execute Plan and apply in two jobs:

  • Pipelines are taking longer
  • Apply is not atomic. Between the plan and apply, there could be another parallel pipeline that creates a new plan. This could not be solved via resource_names, as it's not a single job.

I think there should be an option to directly run an Apply without needing to generate a plan first.

tag:gitlab.com,2023-05-03:2566136066 Jan Dittrich removed due to membership expiration from project Code Challenge / kubecon-eu-2023-challenges / jan-di-challenge-1681911152 2023-05-03T00:11:47Z jan-di Jan Dittrich [email protected] tag:gitlab.com,2023-04-19:2540236270 Jan Dittrich joined project Code Challenge / kubecon-eu-2023-challenges / jan-di-challenge-1681911152 2023-04-19T13:32:34Z jan-di Jan Dittrich [email protected]