Skip to content

Commit

Permalink
update for lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 11, 2025
1 parent 9ae6d3b commit 1045558
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion local-app/tf-directory-setup/remote_state.data.tf.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# version: 1.1.0
# version: 1.1.1

#---
# {{ data.account_alias }}: {{ data.directory }}
Expand All @@ -11,6 +11,11 @@ data "terraform_remote_state" "{{ data.directory_replaced }}" {
bucket = var.tfstate_bucket
key = join("/",compact([var.tfstate_key_prefix,"{{ data.directory }}",var.tfstate_key_suffix]))
region = var.tfstate_region
{% if data.use_lockfile is defined and not data.use_lockfile %}
dynamodb_table = var.tfstate_table
{% endif %}
{% if data.use_lockfile is defined %}
use_lockfile = {{ data.use_lockfile | default('false') | lower }}
{% endif %}
}
}
7 changes: 6 additions & 1 deletion local-app/tf-directory-setup/remote_state.data.tf.s3.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# version: 1.1.0
# version: 1.1.1

#---
# {{ data.account_alias }}: {{ data.directory }}
Expand All @@ -11,6 +11,11 @@ data "terraform_remote_state" "{{ data.directory_replaced }}" {
bucket = var.tfstate_bucket
key = join("/",compact([var.tfstate_key_prefix,"{{ data.directory }}",var.tfstate_key_suffix]))
region = var.tfstate_region
{% if data.use_lockfile is defined and not data.use_lockfile %}
dynamodb_table = var.tfstate_table
{% endif %}
{% if data.use_lockfile is defined %}
use_lockfile = {{ data.use_lockfile | default('false') | lower }}
{% endif %}
}
}

0 comments on commit 1045558

Please sign in to comment.