-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(codepipeline): Error: The 'account' property must be a concrete value #19031
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-codepipelineRelated to AWS CodePipelineRelated to AWS CodePipelinebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1
Description
What is the problem?
After updating Amazon.CDK.Lib from 2.3.0 to 2.12.0 the LambdaInvokeAction fails to synthesize.
Reproduction Steps
Run CDK synth of the following code:
var changeVersionLambda = Function.FromFunctionArn(this, "changeVersionLambda", changeVersionLambdaArn);
new Amazon.CDK.AWS.CodePipeline.StageProps
{
StageName = "Deploy_Test",
Actions = new IAction[]
{
new LambdaInvokeAction(new LambdaInvokeActionProps() {
ActionName = "Populate_Parameters",
Lambda = changeVersionLambda,
UserParameters = new Dictionary<string, object>
{
["component"] = "service",
["environment"] = PlatformEnvironment.Test.ToString(),
["version"] = nodeServiceBuildAction.Variable("NEW_VERSION")
}
})
}
}What did you expect to happen?
CDK synth executes successfully.
What actually happened?
CDK synth fails.
Exception: Amazon.JSII.Runtime.JsiiException: The 'account' property must be a concrete value (action: 'Populate_Version_Parameters')
CDK CLI Version
2.12.0
Framework Version
No response
Node.js Version
v14.17.0
OS
Windows
Language
.NET
Language Version
No response
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-codepipelineRelated to AWS CodePipelineRelated to AWS CodePipelinebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp1