@@ -1128,21 +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
- # TODO: remove this, replace this by setting the provider as default
1132
- # force enable the use of the new invocation logic for APIGW v1 in community
1133
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAY" ):
1134
- os .environ ["PROVIDER_OVERRIDE_APIGATEWAY" ] = "next_gen"
1135
-
1136
- # Whether the Next Gen APIGW invocation logic is enabled (handler chain)
1137
- APIGW_NEXT_GEN_PROVIDER = os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAY" , "" ) == "next_gen"
1138
- if APIGW_NEXT_GEN_PROVIDER :
1139
- # in order to not have conflicts with different implementation registering their own router, we need to have all of
1140
- # them use the same new implementation
1141
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAYV2" ):
1142
- os .environ ["PROVIDER_OVERRIDE_APIGATEWAYV2" ] = "next_gen"
1143
-
1144
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAYMANAGEMENTAPI" ):
1145
- 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" , "" )
1146
1133
1147
1134
# Whether the DynamoDBStreams native provider is enabled
1148
1135
DDB_STREAMS_PROVIDER_V2 = os .environ .get ("PROVIDER_OVERRIDE_DYNAMODBSTREAMS" , "" ) == "v2"
@@ -1156,7 +1143,6 @@ def populate_edge_configuration(
1156
1143
os .environ ["PROVIDER_OVERRIDE_DYNAMODBSTREAMS" ] = "v2"
1157
1144
DDB_STREAMS_PROVIDER_V2 = True
1158
1145
1159
-
1160
1146
# TODO remove fallback to LAMBDA_DOCKER_NETWORK with next minor version
1161
1147
MAIN_DOCKER_NETWORK = os .environ .get ("MAIN_DOCKER_NETWORK" , "" ) or LAMBDA_DOCKER_NETWORK
1162
1148
0 commit comments