@@ -1066,21 +1066,8 @@ def populate_edge_configuration(
1066
1066
# Whether to really publish to GCM while using SNS Platform Application (needs credentials)
1067
1067
LEGACY_SNS_GCM_PUBLISHING = is_env_true ("LEGACY_SNS_GCM_PUBLISHING" )
1068
1068
1069
- # TODO: remove this, replace this by setting the provider as default
1070
- # force enable the use of the new invocation logic for APIGW v1 in community
1071
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAY" ):
1072
- os .environ ["PROVIDER_OVERRIDE_APIGATEWAY" ] = "next_gen"
1073
-
1074
- # Whether the Next Gen APIGW invocation logic is enabled (handler chain)
1075
- APIGW_NEXT_GEN_PROVIDER = os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAY" , "" ) == "next_gen"
1076
- if APIGW_NEXT_GEN_PROVIDER :
1077
- # in order to not have conflicts with different implementation registering their own router, we need to have all of
1078
- # them use the same new implementation
1079
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAYV2" ):
1080
- os .environ ["PROVIDER_OVERRIDE_APIGATEWAYV2" ] = "next_gen"
1081
-
1082
- if not os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAYMANAGEMENTAPI" ):
1083
- os .environ ["PROVIDER_OVERRIDE_APIGATEWAYMANAGEMENTAPI" ] = "next_gen"
1069
+ # Whether the Next Gen APIGW invocation logic is enabled (on by default)
1070
+ APIGW_NEXT_GEN_PROVIDER = os .environ .get ("PROVIDER_OVERRIDE_APIGATEWAY" , "" ) in ("next_gen" , "" )
1084
1071
1085
1072
# Whether the DynamoDBStreams native provider is enabled
1086
1073
DDB_STREAMS_PROVIDER_V2 = os .environ .get ("PROVIDER_OVERRIDE_DYNAMODBSTREAMS" , "" ) == "v2"
@@ -1094,7 +1081,6 @@ def populate_edge_configuration(
1094
1081
os .environ ["PROVIDER_OVERRIDE_DYNAMODBSTREAMS" ] = "v2"
1095
1082
DDB_STREAMS_PROVIDER_V2 = True
1096
1083
1097
-
1098
1084
# TODO remove fallback to LAMBDA_DOCKER_NETWORK with next minor version
1099
1085
MAIN_DOCKER_NETWORK = os .environ .get ("MAIN_DOCKER_NETWORK" , "" ) or LAMBDA_DOCKER_NETWORK
1100
1086
0 commit comments