We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b7fb5 commit 5ea10b3Copy full SHA for 5ea10b3
templates/terraform.tf.tpl
@@ -2,14 +2,19 @@ terraform {
2
required_version = ">= ${terraform_version}"
3
4
backend "s3" {
5
- region = "${region}"
6
- bucket = "${bucket}"
7
- key = "${terraform_state_file}"
8
- profile = "${profile}"
9
- role_arn = "${role_arn}"
10
- encrypt = "${encrypt}"
+ region = "${region}"
+ bucket = "${bucket}"
+ key = "${terraform_state_file}"
+ profile = "${profile}"
+ encrypt = "${encrypt}"
+ %{~ if role_arn != "" ~}
11
12
+ assume_role {
13
+ role_arn = "${role_arn}"
14
+ }
15
+ %{~ endif ~}
16
%{~ if dynamodb_table != "" ~}
17
+
18
dynamodb_table = "${dynamodb_table}"
19
%{~ endif ~}
20
}
0 commit comments