in blogs/ecs-canary-deployments-pipeline/setup/scripts/delete_blog_contents.py [0:0]
def _delete_route(apps):
""" Delete Routes in AppMesh Virtual Router """
for app in apps:
try:
APPMESH_CLIENT.delete_route(
meshName=ENVIRONMENT_NAME,
routeName=app+'-route',
virtualRouterName=app+'-vr'
)
except ClientError as ex:
if ex.response['Error']['Code'] == 'NotFoundException':
print("Could not find the route: {} on the VR: {}, no action needed".format(app+'-route', app+'-vr'))
continue
else:
raise ex