gpt4 book ai didi

python - 如何将 AWS-Fargate 用作 python 脚本

转载 作者:行者123 更新时间:2023-12-04 15:29:13 26 4
gpt4 key购买 nike

我想使用 AWS-Fargate 作为 ML 管道中的数据预处理器。

我在 AWS-ECR 中部署了包含我的 python 脚本的 Docker 镜像。

我还用这张图片创建了一个任务。

我的问题是:

  1. 我应该使用哪个集群,我不太了解集群的概念。
  2. 如何在管道中部署(最好是通过s3事件触发并执行docker run)

谢谢你的回答

最佳答案

  1. 要使用的集群是 Networking only :

    With this option, you can launch a cluster with a new VPC to use for Fargate tasks.

  2. 可以使用 CodePipeline 构建用于将 Docker 镜像自动部署到 ECS 服务的 CICD 管道。良好的开端是以下教程:

    . Tutorial: Continuous Deployment with CodePipeline云服务器

关于python - 如何将 AWS-Fargate 用作 python 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61610671/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com