Trigger Step Function with API Gateway and use Fargate within Step Function?
I want to be able to have a step function that does the following:
- The step function starts with a call to API Gateway from my web app
- The step function starts a Fargate pod based on a specific image
- The step function runs a task on the pod it just created
- After the Fargate task completes, terminate the pod so it does not consume resources
Is this possible to tell Step Functions to start a new pod based on a certain image and then terminate that pod after it returns a success code?
I have not been able to find any info on this.
Please do respect the time others dedicated helping you by mark answers as accepted.
You can do this by -
@Jason_S Thank you for that info.
I understand getting the ARN and terminate the task but is it possible to have Step Functions tell Fargate to spin up a pod based on a specific image to run a task like I mentioned in step 2? I have not been able to find any info on this. All I have been able to find is to send a task to an already running pod.
Trigger Step Function with API Gateway and use Fargate within Step Function?asked 2 months ago
When to invoke a lambda directly or via API Gatewayasked 5 months ago
Passing HTTP Headers from API Gateway HTTP API to Step Function?asked a month ago
Step functions pass input into Fargate instance :asked 3 months ago
Internal Server Error from API Gateway when sending queries through gateway to Lambda function connected to RDS databaseasked 2 months ago
Why aren't the HTTP headers passed from API Gateway to Step Functions?asked 5 months ago
Can I specify GET URL path parameter in step function?asked 3 months ago
Latency in Step function for express workflow invoked from aws sdk java v2asked 2 months ago
ThrottlingException from Step Function triggered through API Endpointasked 2 years ago
Step Function to Send Email on Error/Successasked 4 months ago