Skip to content

Commit

Permalink
fix: s3 backend deprecated role_arn field (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
basvandijk authored Jan 12, 2024
1 parent b8b7fb5 commit 5ea10b3
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions templates/terraform.tf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ terraform {
required_version = ">= ${terraform_version}"
backend "s3" {
region = "${region}"
bucket = "${bucket}"
key = "${terraform_state_file}"
profile = "${profile}"
role_arn = "${role_arn}"
encrypt = "${encrypt}"
region = "${region}"
bucket = "${bucket}"
key = "${terraform_state_file}"
profile = "${profile}"
encrypt = "${encrypt}"
%{~ if role_arn != "" ~}

assume_role {
role_arn = "${role_arn}"
}
%{~ endif ~}
%{~ if dynamodb_table != "" ~}

dynamodb_table = "${dynamodb_table}"
%{~ endif ~}
}
Expand Down

0 comments on commit 5ea10b3

Please sign in to comment.