diff --git a/templates/backend.tf.tpl b/templates/backend.tf.tpl index 3e2f7f9..16683ea 100644 --- a/templates/backend.tf.tpl +++ b/templates/backend.tf.tpl @@ -7,7 +7,11 @@ terraform { dynamodb_table = "${dynamodb_table}" %{~ endif ~} profile = "${profile}" - role_arn = "${role_arn}" encrypt = "${encrypt}" + %{~ if role_arn != "" ~} + assume_role { + role_arn = "${role_arn}" + } + %{~ endif ~} } }