diff --git a/templates/backend.tftpl b/templates/backend.tftpl index e7fe5c8..9075153 100644 --- a/templates/backend.tftpl +++ b/templates/backend.tftpl @@ -1,16 +1,12 @@ terraform { - %{ if use_s3_locking } - required_version = ">= 1.11" - %{ endif } +%{ if use_s3_locking } required_version = ">= 1.11" +%{ endif } backend "s3" { allowed_account_ids = [ "${account_id}" ] region = "${region}" bucket = "${bucket}" key = "terraform-state/main.tfstate" - %{ if !use_s3_locking } - dynamodb_table = "${dynamodb_table}" - %{ else } - use_lockfile = true - %{ endif } - } -} \ No newline at end of file +%{ if !use_s3_locking } dynamodb_table = "${dynamodb_table}" +%{ else } use_lockfile = true +%{ endif } } +}