Skip to content

Commit

Permalink
fix: pin CDK CLI version to 1.159.0
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
Ganesh Jangir authored and ganeshnj committed Jun 27, 2022
1 parent 4a4e1e4 commit dcd9d03
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ internal PipelineStack(
.OrderBy(variable => variable);

// Self mutation
// TODO: DOTNET-6085 - Migration from CDKPipeline to CodePipeline
const string cdkCliVersion = "1.159.0";
var pipeline = new CdkPipeline(this, "Pipeline", new CdkPipelineProps
{
PipelineName = $"{id}-{framework}",
CloudAssemblyArtifact = outputArtifact,
CdkCliVersion = cdkCliVersion,

SourceAction = new CodeCommitSourceAction(new CodeCommitSourceActionProps
{
Expand All @@ -94,7 +97,7 @@ internal PipelineStack(
Subdirectory = "LambdaRuntimeDockerfiles/Infrastructure",
InstallCommands = new[]
{
"npm install -g aws-cdk",
$"npm install -g aws-cdk@{cdkCliVersion}",
},
BuildCommands = new[] {"dotnet build"},
SynthCommand = "cdk synth",
Expand Down

0 comments on commit dcd9d03

Please sign in to comment.