Skip to content

Commit e34c0bd

Browse files
debugging
1 parent 1ecc1e2 commit e34c0bd

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

cicd/3-app/aiproxy/template.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

src/test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# This houses generic tests of supplemental libraries and health
22
# of the service.
33

4+
import logging
5+
46
from flask import Blueprint, request
57

68
test_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')
1117
def test():
1218
return {}

0 commit comments

Comments
 (0)