使用 AWS CDK,我有一个 CodePipeline,它为 5 个不同的 Lambda 函数生成构建工件,然后将这些工件作为参数传递给 CloudFormation 模板。基本设置与此示例相同,CloudFormation 部署操作基本如下所示:
new CloudFormationCreateUpdateStackAction({
actionName: 'Lambda_CFN_Deploy',
templatePath: cdkBuildOutput.atPath('LambdaStack.template.json'),
stackName: 'LambdaDeploymentStack',
adminPermissions: true,
parameterOverrides: {
...props.lambdaCode.assign(lambdaBuildOutput.s3Location),
// more parameter overrides here
},
extraInputs: [lambdaBuildOutput],
})
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试部署时,出现此错误:
1 validation error detected: Value at 'pipeline.stages.3.member.actions.1.member.configuration' failed to satisfy constraint:
Map value must satisfy constraint:
[Member must have length less than or equal to 1000, Member must have length greater than or equal to 1]
Run Code Online (Sandbox Code Playgroud)
所述CodePipeline文档指定在值Configuration的ActionDeclaration的属性可多达1000个字符。如果我查看来自 的 YAML 输出 …
amazon-web-services aws-cloudformation aws-codepipeline aws-cdk