You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When target_regions = ["us-east-1", "us-west-2"] is set together with vpc_enable_flow_logs = false TF apply fails for all other regions:
Error: Invalid index
on .terraform/modules/secure-baseline/vpc_baselines.tf line 134, in module "vpc_baseline_ap-southeast-1":
134: flow_logs_iam_role_arn = local.is_cw_logs ? aws_iam_role.flow_logs_publisher[0].arn : null
|----------------
| aws_iam_role.flow_logs_publisher is empty tuple
The given key does not identify an element in this collection value.
Is this a setting I am missing or it's a bug?
The text was updated successfully, but these errors were encountered:
When
target_regions = ["us-east-1", "us-west-2"]
is set together withvpc_enable_flow_logs = false
TF apply fails for all other regions:Is this a setting I am missing or it's a bug?
The text was updated successfully, but these errors were encountered: