Skip to content

Commit

Permalink
Use CodeBuild AL 5.0 image
Browse files Browse the repository at this point in the history
  • Loading branch information
clareliguori committed Oct 1, 2023
1 parent 2d19652 commit 6680381
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pipelines/src/api-base-image-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TriviaGameBackendBaseImagePipeline extends Stack {
},
}),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
},
});
pipelineProject.addToRolePolicy(
Expand Down Expand Up @@ -112,7 +112,7 @@ class TriviaGameBackendBaseImagePipeline extends Stack {
const project = new codebuild.PipelineProject(this, 'BuildBaseImage', {
buildSpec: codebuild.BuildSpec.fromSourceFilename('trivia-backend/base/buildspec.yml'),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
privileged: true
}
});
Expand Down
4 changes: 2 additions & 2 deletions pipelines/src/api-service-codedeploy-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class TriviaGameBackendCodeDeployPipelineStack extends Stack {
},
}),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
},
});
pipelineProject.addToRolePolicy(
Expand Down Expand Up @@ -124,7 +124,7 @@ class TriviaGameBackendCodeDeployPipelineStack extends Stack {
const buildProject = new codebuild.PipelineProject(this, 'BuildProject', {
buildSpec: codebuild.BuildSpec.fromSourceFilename('trivia-backend/infra/codedeploy-blue-green/buildspec.yml'),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
privileged: true
}
});
Expand Down
2 changes: 1 addition & 1 deletion pipelines/src/chat-bot-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TriviaGameChatBotPipelineStack extends Stack {
const lexProject = new codebuild.PipelineProject(this, 'LexProject', {
buildSpec: codebuild.BuildSpec.fromSourceFilename('chat-bot/lex-model/buildspec.yml'),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0')
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5
}
});

Expand Down
4 changes: 2 additions & 2 deletions pipelines/src/common/cfn-containers-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class TriviaGameContainersCfnPipeline extends Construct {
},
}),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
},
});
pipelineProject.addToRolePolicy(
Expand Down Expand Up @@ -136,7 +136,7 @@ export class TriviaGameContainersCfnPipeline extends Construct {
const buildProject = new codebuild.PipelineProject(this, 'BuildProject', {
buildSpec: codebuild.BuildSpec.fromSourceFilename(props.buildspecLocation),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
environmentVariables: {
'ARTIFACTS_BUCKET': {
value: pipeline.artifactBucket.bucketName
Expand Down
4 changes: 2 additions & 2 deletions pipelines/src/common/cfn-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class TriviaGameCfnPipeline extends Construct {
},
}),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
},
});
pipelineProject.addToRolePolicy(
Expand Down Expand Up @@ -128,7 +128,7 @@ export class TriviaGameCfnPipeline extends Construct {
const buildProject = new codebuild.PipelineProject(this, 'BuildProject', {
buildSpec: codebuild.BuildSpec.fromSourceFilename(props.directory + '/buildspec.yml'),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
environmentVariables: {
'ARTIFACTS_BUCKET': {
value: pipeline.artifactBucket.bucketName
Expand Down
4 changes: 2 additions & 2 deletions pipelines/src/static-site-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class TriviaGameStaticSitePipeline extends Stack {
},
}),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
},
});
pipelineProject.addToRolePolicy(
Expand Down Expand Up @@ -121,7 +121,7 @@ class TriviaGameStaticSitePipeline extends Stack {
const project = new codebuild.PipelineProject(this, stageName + 'Project', {
buildSpec: codebuild.BuildSpec.fromSourceFilename('static-site/buildspec.yml'),
environment: {
buildImage: codebuild.LinuxBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-x86_64-standard:4.0'),
buildImage: codebuild.LinuxBuildImage.AMAZON_LINUX_2_5,
environmentVariables: {
'STAGE': {
value: stageName.toLowerCase()
Expand Down

0 comments on commit 6680381

Please sign in to comment.