File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5
5
create_flow_log_cloudwatch_iam_role = local. enable_flow_log && var. flow_log_destination_type != " s3" && var. create_flow_log_cloudwatch_iam_role
6
6
create_flow_log_cloudwatch_log_group = local. enable_flow_log && var. flow_log_destination_type != " s3" && var. create_flow_log_cloudwatch_log_group
7
7
8
- flow_log_destination_arn = local. create_flow_log_cloudwatch_log_group ? aws_cloudwatch_log_group. flow_log [0 ]. arn : var. flow_log_destination_arn
9
- flow_log_iam_role_arn = var. flow_log_destination_type != " s3" && local. create_flow_log_cloudwatch_iam_role ? aws_iam_role. vpc_flow_log_cloudwatch [0 ]. arn : var. flow_log_cloudwatch_iam_role_arn
8
+ flow_log_destination_arn = local. create_flow_log_cloudwatch_log_group ? try ( aws_cloudwatch_log_group. flow_log [0 ]. arn , null ) : var. flow_log_destination_arn
9
+ flow_log_iam_role_arn = var. flow_log_destination_type != " s3" && local. create_flow_log_cloudwatch_iam_role ? try ( aws_iam_role. vpc_flow_log_cloudwatch [0 ]. arn , null ) : var. flow_log_cloudwatch_iam_role_arn
10
10
}
11
11
12
12
# ###############################################################################
You can’t perform that action at this time.
0 commit comments