File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ Resources:
7878 DependsOn : LoadBalancerListener
7979 Properties :
8080 Cluster : !Ref ECSCluster
81- DesiredCount : 2
81+ DesiredCount : 1
8282 LaunchType : FARGATE
8383 TaskDefinition : !Ref ECSTaskDefinition
8484 NetworkConfiguration :
8585 AwsvpcConfiguration :
86- AssignPublicIp : ENABLED
86+ AssignPublicIp : DISABLED
8787 SecurityGroups :
8888 - !Ref ECSSecurityGroup
8989 Subnets :
@@ -106,12 +106,12 @@ Resources:
106106 Type : " AWS::ECS::TaskDefinition"
107107 Properties :
108108 Family : aiproxy
109- Cpu : ' 256'
110- Memory : ' 512'
111- NetworkMode : awsvpc
112109 RequiresCompatibilities :
113110 - FARGATE
111+ NetworkMode : awsvpc
114112 ExecutionRoleArn : !ImportValue AiProxyECSTaskExecutionRoleArn
113+ Cpu : 256
114+ Memory : 512
115115 ContainerDefinitions :
116116 - Name : aiproxy
117117 Image : !Ref AppImageUri
Original file line number Diff line number Diff line change 11# This houses generic tests of supplemental libraries and health
22# of the service.
33
4+ import logging
5+
46from flask import Blueprint , request
57
68test_routes = Blueprint ('test_routes' , __name__ )
79
8- # A simple JSON response that always succeeds
910@test_routes .route ('/' )
11+ def index ():
12+ logging .info ("Index route called." )
13+ return "Hello, World!"
14+
15+ # A simple JSON response that always succeeds
1016@test_routes .route ('/test' )
1117def test ():
1218 return {}
You can’t perform that action at this time.
0 commit comments