Skip to content

Commit

Permalink
Merge pull request #28 from d3adb5/refactor/assume-role-block
Browse files Browse the repository at this point in the history
refactor: use assume_role block for role_arn
  • Loading branch information
martingaleano committed Jan 24, 2024
2 parents cb17cb6 + 9551a57 commit 44ed228
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/backend.tf.tpl
Expand Up @@ -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 ~}
}
}

0 comments on commit 44ed228

Please sign in to comment.