如何使用CodeBuild并行部署Lambda函数?

0

【以下的问题经过翻译处理】 我已经配置了一个CodePipeline,使用我的GitHub仓库来触发任何提交时的构建和部署。

我的仓库包含多个单独的lambda函数。

pre_build步骤执行完全清除和还原。然后在build步骤中,我有一个命令列表如下:

- dotnet build -c Debug
- cd folder1
- dotnet lambda deploy-function --configuration Debug --region $Region --config-file aws-lambda-tools-test.json
- cd ../folder2
- dotnet lambda deploy-function --configuration Debug --region $Region --config-file aws-lambda-tools-test.json
- cd ../folder3
- dotnet lambda deploy-function --configuration Debug --region $Region --config-file aws-lambda-tools-test.json

有没有办法让我并行执行这些部署?

profile picture
专家
已提问 5 个月前35 查看次数
1 回答
0

【以下的回答经过翻译处理】 CodeBuild batch支持矩阵构建,其中构建矩阵定义了具有不同配置的并行运行任务。CodeBuild为每个可能的配置组合创建一个单独的构建任务。

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则