What is the best way to eventually have a container task be completed if it times out while waiting for an instance (Provisioning State)?
My preferred solution would be it never times out, towards that end I tried to up the start time out of the conainer as below (it is the line right below "image": "XXXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com/hsforum:latest", which is one of the longer lines):
"ipcMode": null, "executionRoleArn": "arn:aws:iam::XXXXXXXXXX:role/PICKLEStack-FHTask871D3AF0-C9GJ55PNKL4J", "containerDefinitions": [ { "dnsSearchDomains": [], "environmentFiles": null, "logConfiguration": null, "entryPoint": [], "portMappings": [], "command": [ "-c", "interactive", "-a", "PICKLE", "--tooltype", "false" ], "linuxParameters": null, "cpu": 2, "environment": [], "resourceRequirements": null, "ulimits": null, "dnsServers": [], "mountPoints": [], "workingDirectory": null, "secrets": null, "dockerSecurityOptions": [], "memory": 256, "memoryReservation": null, "volumesFrom": [], "stopTimeout": null, "image": "XXXXXXXXXX.dkr.ecr.us-east-1.amazonaws.com/hsforum:latest", "startTimeout": 54000, "firelensConfiguration": null, "dependsOn": null, "disableNetworking": null, "interactive": null, "healthCheck": null, "essential": true, "links": [], "hostname": null, "extraHosts": null, "pseudoTerminal": null, "user": null, "readonlyRootFilesystem": null, "dockerLabels": null, "systemControls": [], "privileged": null, "name": "HSPICKLE-Scheduled-Container" } ], "memory": null, "taskRoleArn": "arn:aws:iam::032209199189:role/PICKLEStack-FHTask871D3AF0-C9GJ55PNKL4J", "family": "PICKLEStackHSForumScheduledRun41E73875", "pidMode": null, "requiresCompatibilities": [ "EC2" ], "networkMode": "bridge", "cpu": null, "inferenceAccelerators": [], "proxyConfiguration": null, "volumes": [], "placementConstraints": [], "tags": [] }``` If stopping it from timing out in provisioning is not possible my only imagined solution is to capture the event on EventBridge when the ECS Task is going from "Provisioning" to "Stopping" and simply requeue it with a Lambda? I am hoping someone out there has had to solve this before. Thanks!