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 @@ -324,7 +324,7 @@ resource "aws_apigatewayv2_stage" "this" {
324
324
api_id = aws_apigatewayv2_api. this [0 ]. id
325
325
326
326
dynamic "access_log_settings" {
327
- for_each = length ( var. stage_access_log_settings ) > 0 ? [var . stage_access_log_settings ] : []
327
+ for_each = var. stage_access_log_settings != null ? [var . stage_access_log_settings ] : []
328
328
329
329
content {
330
330
destination_arn = access_log_settings. value . create_log_group ? aws_cloudwatch_log_group. this [" this" ]. arn : access_log_settings. value . destination_arn
@@ -336,7 +336,7 @@ resource "aws_apigatewayv2_stage" "this" {
336
336
client_certificate_id = local. is_websocket ? var. stage_client_certificate_id : null
337
337
338
338
dynamic "default_route_settings" {
339
- for_each = length ( var. stage_default_route_settings ) > 0 ? [var . stage_default_route_settings ] : []
339
+ for_each = var. stage_default_route_settings != null ? [var . stage_default_route_settings ] : []
340
340
341
341
content {
342
342
data_trace_enabled = local. is_websocket ? default_route_settings. value . data_trace_enabled : null
You can’t perform that action at this time.
0 commit comments