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