Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 11, 2025
1 parent 15d443a commit 9ae6d3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions local-app/tf-directory-setup/remote_state.backend.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ terraform {
backend "s3" {
profile = "{{ data.profile }}"
bucket = "{{ data.bucket }}"
{% if s3key.startswith('/') %}
key = "{{ s3key | replace('/','',1) }}"
{% else %}
key = "{{ s3key }}"
{% endif %}
region = "{{ data.bucket_region }}"
{% if data.use_lockfile is defined and not data.use_lockfile %}
dynamodb_table = "{{ data.table_name | default('tf_remote_state') }}"
Expand Down

0 comments on commit 9ae6d3b

Please sign in to comment.