import os
import boto3

def handler (event, callback):
    print("startup lambda invoked")
    client = boto3.client("ecs")
    response = client.run_task(
        cluster = os.getenv("CLUSTER_ARN"),
        taskDefinition = os.getenv("TASK_ARN"),
        count = 1,
    )
    print(response)
