terragrunt-atlantis-config icon indicating copy to clipboard operation
terragrunt-atlantis-config copied to clipboard

Parallel run

Open mike-serchenia opened this issue 2 years ago • 5 comments

Hi

Looks like right now it's not possible to generate config with parallel_apply: false and parallel_plan: true since they both take single bool variable. Do you think such option can be added?

mike-serchenia avatar Jun 23 '22 22:06 mike-serchenia

Sure, I think so. So you'd want to have something like a locals value you could set in a workflow to override the global setting? Would that work?

dmattia avatar Jul 06 '22 21:07 dmattia

Sure, I think so. So you'd want to have something like a locals value you could set in a workflow to override the global setting? Would that work?

I think it should work. could you please share a link to some doc on how it can be achieved?

mike-serchenia avatar Jul 25 '22 23:07 mike-serchenia

May just separate flags for parallel_apply and parallel_plan?

mike-serchenia avatar Jul 26 '22 06:07 mike-serchenia

found it, thank you for the advice, case close

locals {
  atlantis_autoplan = true
}

mike-serchenia avatar Jul 26 '22 19:07 mike-serchenia

@dmattia sorry for confusion with my copy-paste earlier not autoplan but parallel is needed

temporary workaround

    pre_workflow_hooks:
      - run: "terragrunt-atlantis-config generate --output atlantis.yaml --autoplan --parallel=false --root ./ --create-workspace"
      - run: "sed 's/parallel_plan: false/parallel_plan: true/' -i atlantis.yaml"

mike-serchenia avatar Jul 27 '22 16:07 mike-serchenia