Skip to content

Commit 0eb04fe

Browse files
authored
Revert "Remove the playground Lambda"
1 parent 5ae2703 commit 0eb04fe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

api-gateway-routes/api_gateway_proxy_function.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def on_connect(event, context)
7979
function_name = ENV['BUILD_AND_RUN_CONSOLE_PROJECT_LAMBDA_ARN']
8080
elsif authorizer['mini_app_type'] == 'theater'
8181
function_name = ENV['BUILD_AND_RUN_THEATER_PROJECT_LAMBDA_ARN']
82+
elsif authorizer['mini_app_type'] == 'playground'
83+
function_name = ENV['BUILD_AND_RUN_PLAYGROUND_PROJECT_LAMBDA_ARN']
8284
else
8385
return { statusCode: 400, body: "invalid mini-app" }
8486
end

template.yml.erb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ JAVALAB_APP_TYPES = %w(
5353
Theater
5454
Neighborhood
5555
Console
56+
Playground
5657
)
5758
-%>
5859
Globals:
@@ -435,7 +436,8 @@ Resources:
435436
<%{
436437
Theater: {MemorySize: 1769, Timeout: 90},
437438
Neighborhood: {MemorySize: 512, Timeout: 90},
438-
Console: {MemorySize: 512, Timeout: 90}
439+
Console: {MemorySize: 512, Timeout: 90},
440+
Playground: {MemorySize: 512, Timeout: 300}
439441
}.each do |name, config| -%>
440442
BuildAndRunJava<%=name%>ProjectFunction:
441443
Type: AWS::Serverless::Function
@@ -572,7 +574,7 @@ Resources:
572574
Label: Concurrent Executions Across All Lambdas
573575
ReturnData: true
574576
Expression: SUM(METRICS())
575-
<%{Theater: "m2", Neighborhood: "m3", Console: "m4"}.each do |name, id| -%>
577+
<%{Theater: "m2", Neighborhood: "m3", Console: "m4", Playground: "m5"}.each do |name, id| -%>
576578
- Id: <%=id%>
577579
ReturnData: false
578580
MetricStat:
@@ -655,6 +657,7 @@ Resources:
655657
- HighWebsocketConnectionsAlarm
656658
- NeighborhoodHighInvocationsAlarm
657659
- TheaterHighInvocationsAlarm
660+
- PlaygroundHighInvocationsAlarm
658661
Properties:
659662
ActionsEnabled: true
660663
AlarmActions:
@@ -667,6 +670,7 @@ Resources:
667670
ALARM(${SubDomainName}_high_http_requests) OR
668671
ALARM(${SubDomainName}_high_websocket_connections) OR
669672
ALARM(${SubDomainName}_neighborhood_high_invocations) OR
673+
ALARM(${SubDomainName}_playground_high_invocations) OR
670674
ALARM(${SubDomainName}_theater_high_invocations)"
671675
InsufficientDataActions: []
672676
OKActions: []

0 commit comments

Comments
 (0)