@@ -1128,16 +1128,8 @@ def populate_edge_configuration(
1128
1128
# Whether to really publish to GCM while using SNS Platform Application (needs credentials)
1129
1129
LEGACY_SNS_GCM_PUBLISHING = is_env_true ("LEGACY_SNS_GCM_PUBLISHING" )
1130
1130
1131
- # Whether the Next Gen APIGW invocation logic is enabled (handler chain)
1132
- APIGW_NEXT_GEN_PROVIDER = os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAY" , "" ) == "next_gen"
1133
- if APIGW_NEXT_GEN_PROVIDER :
1134
- # in order to not have conflicts with different implementation registering their own router, we need to have all of
1135
- # them use the same new implementation
1136
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAYV2" ):
1137
- os .environ ["PROVIDER_OVERRIDE_APIGATEWAYV2" ] = "next_gen"
1138
-
1139
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAYMANAGEMENTAPI" ):
1140
- os .environ ["PROVIDER_OVERRIDE_APIGATEWAYMANAGEMENTAPI" ] = "next_gen"
1131
+ # Whether the Next Gen APIGW invocation logic is enabled (on by default)
1132
+ APIGW_NEXT_GEN_PROVIDER = os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAY" , "" ) in ("next_gen" , "" )
1141
1133
1142
1134
# Whether the DynamoDBStreams native provider is enabled
1143
1135
DDB_STREAMS_PROVIDER_V2 = os .environ .get ("PROVIDER_OVERRIDE_DYNAMODBSTREAMS" , "" ) == "v2"
@@ -1151,7 +1143,6 @@ def populate_edge_configuration(
1151
1143
os .environ ["PROVIDER_OVERRIDE_DYNAMODBSTREAMS" ] = "v2"
1152
1144
DDB_STREAMS_PROVIDER_V2 = True
1153
1145
1154
-
1155
1146
# TODO remove fallback to LAMBDA_DOCKER_NETWORK with next minor version
1156
1147
MAIN_DOCKER_NETWORK = os .environ .get ("MAIN_DOCKER_NETWORK" , "" ) or LAMBDA_DOCKER_NETWORK
1157
1148
0 commit comments