Skip to content

Commit

Permalink
refactor: use assume_role block for role_arn
Browse files Browse the repository at this point in the history
Use the assume_role.role_arn property instead of the now deprecated role_arn.
This should also fix potential issues with the AWS provider trying to assume a
nonexistent role.
  • Loading branch information
d3adb5 committed Oct 12, 2023
1 parent 7a501e0 commit 4f9ef99
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 4f9ef99

Please sign in to comment.