Skip to content

Commit dcd9d03

Browse files
committed
fix: pin CDK CLI version to 1.159.0
## Motivation aws/aws-cdk#20739 ## Change Pin CDK version to 1.159.0. Once CodeBuild starts supporting NodeJS 14 LTS, this can be removed. ## Result Self mutation succeeds.
1 parent 4a4e1e4 commit dcd9d03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

LambdaRuntimeDockerfiles/Infrastructure/src/Infrastructure/PipelineStack.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,13 @@ internal PipelineStack(
7171
.OrderBy(variable => variable);
7272

7373
// Self mutation
74+
// TODO: DOTNET-6085 - Migration from CDKPipeline to CodePipeline
75+
const string cdkCliVersion = "1.159.0";
7476
var pipeline = new CdkPipeline(this, "Pipeline", new CdkPipelineProps
7577
{
7678
PipelineName = $"{id}-{framework}",
7779
CloudAssemblyArtifact = outputArtifact,
80+
CdkCliVersion = cdkCliVersion,
7881

7982
SourceAction = new CodeCommitSourceAction(new CodeCommitSourceActionProps
8083
{
@@ -94,7 +97,7 @@ internal PipelineStack(
9497
Subdirectory = "LambdaRuntimeDockerfiles/Infrastructure",
9598
InstallCommands = new[]
9699
{
97-
"npm install -g aws-cdk",
100+
$"npm install -g aws-cdk@{cdkCliVersion}",
98101
},
99102
BuildCommands = new[] {"dotnet build"},
100103
SynthCommand = "cdk synth",

0 commit comments

Comments
 (0)