Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use assume_role block for role_arn #28

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor: use assume_role block for role_arn
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
commit 4f9ef99b17062c9da41e3c0f275be126e52e6442
6 changes: 5 additions & 1 deletion templates/backend.tf.tpl
Original file line number Diff line number Diff line change
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 ~}
}
}