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:
78
78
DependsOn : LoadBalancerListener
79
79
Properties :
80
80
Cluster : !Ref ECSCluster
81
- DesiredCount : 2
81
+ DesiredCount : 1
82
82
LaunchType : FARGATE
83
83
TaskDefinition : !Ref ECSTaskDefinition
84
84
NetworkConfiguration :
85
85
AwsvpcConfiguration :
86
- AssignPublicIp : ENABLED
86
+ AssignPublicIp : DISABLED
87
87
SecurityGroups :
88
88
- !Ref ECSSecurityGroup
89
89
Subnets :
@@ -106,12 +106,12 @@ Resources:
106
106
Type : " AWS::ECS::TaskDefinition"
107
107
Properties :
108
108
Family : aiproxy
109
- Cpu : ' 256'
110
- Memory : ' 512'
111
- NetworkMode : awsvpc
112
109
RequiresCompatibilities :
113
110
- FARGATE
111
+ NetworkMode : awsvpc
114
112
ExecutionRoleArn : !ImportValue AiProxyECSTaskExecutionRoleArn
113
+ Cpu : 256
114
+ Memory : 512
115
115
ContainerDefinitions :
116
116
- Name : aiproxy
117
117
Image : !Ref AppImageUri
Original file line number Diff line number Diff line change 1
1
# This houses generic tests of supplemental libraries and health
2
2
# of the service.
3
3
4
+ import logging
5
+
4
6
from flask import Blueprint , request
5
7
6
8
test_routes = Blueprint ('test_routes' , __name__ )
7
9
8
- # A simple JSON response that always succeeds
9
10
@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
10
16
@test_routes .route ('/test' )
11
17
def test ():
12
18
return {}
You can’t perform that action at this time.
0 commit comments