Skip to content

Commit

Permalink
Set role_arn to null if not provided
Browse files Browse the repository at this point in the history
Fix/workaround for error 'The argument "role_arn" is required, but no
definition was found.' (terraform-provider-aws v5.67.0).

See also issue hashicorp/terraform-provider-aws#39296.
  • Loading branch information
philippthun committed Sep 13, 2024
1 parent 832246a commit bd8bd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/aws/templates/base.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ provider "aws" {
secret_key = "${var.secret_key}"
region = "${var.region}"
assume_role {
role_arn = "${var.role_arn}"
role_arn = var.role_arn == "" ? null : "${var.role_arn}"
}
}

Expand Down

0 comments on commit bd8bd52

Please sign in to comment.