Replies: 2 comments
-
What I usually do is trigger a fargate task manually from a python script using the aws sdk (boto3) to call the run_task API. But this requires copy-pasting a lot of parameters like the cluster name, task definition name, subnet ids, etc.. from the AWS console into my script. It would be great to have some way to do this easier. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@e-e - did you end-up making this work as part of the deployment flow? Maybe with a lambda? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm setting up a new application to be deployed using the
ApplicationLoadBalancedFargateService
fromecs-patterns
. I think I have everything sorted out, and it deploys just fine, but there is one final, critical piece that I'm missing that I can't seem to figure out a solution for. The application is a nodejs web/api application, and I need to be able to execute a command on one of the newly created fargate tasks in order to run any database migrations. Is there a way to do this with cdk only? I also need to make sure it runs on exactly one of the new tasks. I started looking into using CodePipeline as well, but I still can't really wrap my head around how to achieve this.Thank you in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions