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

Remove enabled ternary on providers #82

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions accepter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ provider "aws" {
skip_metadata_api_check = var.skip_metadata_api_check

dynamic "assume_role" {
for_each = local.enabled && var.accepter_aws_assume_role_arn != "" ? ["true"] : []
for_each = var.accepter_aws_assume_role_arn != "" ? ["true"] : []
content {
role_arn = var.accepter_aws_assume_role_arn
}
Expand Down Expand Up @@ -146,4 +146,4 @@ output "accepter_accept_status" {
output "accepter_subnet_route_table_map" {
value = local.accepter_aws_rt_map
description = "Map of accepter VPC subnet IDs to route table IDs"
}
}
2 changes: 1 addition & 1 deletion requester.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ provider "aws" {
skip_metadata_api_check = var.skip_metadata_api_check

dynamic "assume_role" {
for_each = local.enabled && var.requester_aws_assume_role_arn != "" ? ["true"] : []
for_each = var.requester_aws_assume_role_arn != "" ? ["true"] : []
content {
role_arn = var.requester_aws_assume_role_arn
}
Expand Down