Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 1 addition & 2 deletions templates/terraform.tf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ terraform {
profile = "${profile}"
encrypt = "${encrypt}"
%{~ if role_arn != "" ~}

assume_role {
assume_role = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't an if statement be used here to add the equal sign if the terraform version is greater than 1.6 ?

role_arn = "${role_arn}"
}
%{~ endif ~}
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ variable "profile" {
variable "role_arn" {
type = string
default = ""
description = "The role to be assumed"
description = "The role to be assumed. If this is set, `terraform_version` variable must be `1.6.0` or higher."
}

variable "terraform_backend_config_file_name" {
Expand Down