From 990dfe8b75a01ca33588c431673b90fd1a61d156 Mon Sep 17 00:00:00 2001 From: Bill Franklin Date: Mon, 24 May 2021 10:33:24 +0100 Subject: [PATCH] Disable refresh on CI plan This disables the default behavior of synchronizing the local Terraform state with remote objects before checking for configuration changes. This will make the CI planner test faster, since it reduces the number of API requests from refreshing the state. However, it makes the test less reliable since it ignores changes that have been made outside of Terraform, therefore risks the plan not being complete or correct. --- concourse/tasks/terraform-plan-govuk-deployment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/concourse/tasks/terraform-plan-govuk-deployment.yml b/concourse/tasks/terraform-plan-govuk-deployment.yml index 7a5e4eae2..f251eab38 100644 --- a/concourse/tasks/terraform-plan-govuk-deployment.yml +++ b/concourse/tasks/terraform-plan-govuk-deployment.yml @@ -25,4 +25,5 @@ run: -var-file ../variables/common.tfvars \ -var-file ../variables/test/common.tfvars \ -var-file ../variables/test/infrastructure.tfvars \ - -lock=false + -lock=false \ + -refresh=false