如何使用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
EXPERT
asked 5 months ago39 views
1 Answer
0

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

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions