Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Commit a7ba8ef

Browse files
committed
fix: code cleanup
1 parent 3abc6d3 commit a7ba8ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/emd/cfn/shared/ecs_cluster.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Resources:
241241
242242
response_data = {'DnsName': dns_name}
243243
cfnresponse.send(event, context, cfnresponse.SUCCESS, response_data)
244-
244+
245245
def force_api_router_deployment(event, context):
246246
"""
247247
Forces a new deployment for the APIRouterService.
@@ -250,24 +250,24 @@ Resources:
250250
ecs_client = boto3.client('ecs')
251251
cluster_name = os.environ['ECS_CLUSTER_NAME']
252252
service_name = "EMD-API-Router"
253-
253+
254254
try:
255255
# Check if the service exists
256256
response = ecs_client.describe_services(
257257
cluster=cluster_name,
258258
services=[service_name]
259259
)
260-
260+
261261
if not response['services'] or response['services'][0]['status'] != 'ACTIVE':
262262
raise Exception(f"Service {service_name} not found or not active in cluster {cluster_name}")
263-
263+
264264
# Force a new deployment
265265
ecs_client.update_service(
266266
cluster=cluster_name,
267267
service=service_name,
268268
forceNewDeployment=True
269269
)
270-
270+
271271
response_data = {'Message': f"Forced new deployment for {service_name}"}
272272
cfnresponse.send(event, context, cfnresponse.SUCCESS, response_data)
273273
except Exception as e:

0 commit comments

Comments
 (0)