CDK Action只允许一个输入,但我需要两个

0

【以下的问题经过翻译处理】 我的项目仓库设置如下:

./lambda ./infrastructure

我正在使用带有Java的CDK,并且我在“lambda”子文件夹(其中包含我的lambda代码)和“infrastructure”文件夹(其中包含我的CDK代码)中都有一个maven build。 在我的CodeCatalyst工作流程中,我计划执行我的“mvn package”(构建lambda jar文件)并保存此artifact。然后,这个artifact需要在“cdk deploy”操作中使用。但是,由于“cdk deploy”操作还需要“source”输入,因此我需要两个输入。

CodeCatalyst出现以下报错: Action InfrastructureDeployment declares 2 input artifacts which is more than the maximum count (1)

我的代码如下,请问有解决方法吗?谢谢!

BaseInfrastructureDeployment: Identifier: aws/cdk-deploy@v1 Configuration: CdkRootPath: infrastructure Region: eu-central-1 StackName: BaseStack Compute: Type: Lambda Environment: Connections: - Role: CodeCatalystPreviewDevelopmentAdministrator-z4s5g1 Name: "916032256060" Name: alpha DependsOn: - Build Inputs: Variables: - Name: CODEBUILD_SRC_DIR_LambdaBuildOutput Value: /artifacts/BaseInfrastructureDeployment/lambda_build/lambda/target/lambda-1.0.0-jar-with-dependencies.jar - Name: xxx Value: test Artifacts: - lambda_build Sources: - WorkflowSource

1 回答
0

【以下的回答经过翻译处理】 您好,我们已经取消了对CDK部署操作的限制,目前可以支持同时具备sources和artifacts.

profile picture
专家
已回答 1 年前

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

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

回答问题的准则