π‘οΈ AWS CodeBuild Project uses a deprecated managed imageπ’
- Contextual name: π‘οΈ Project uses a deprecated managed imageπ’
- ID:
/ce/ca/aws/codebuild/project-deprecated-image - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
RELIABILITY
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
This policy checks whether an AWS CodeBuild project's
Environment Imageexactly matches an AWS-managed image in the published deprecated-image list.Rationaleβ
Deprecated managed images no longer receive minor or patch updates from CodeBuild and are no longer cached on build hosts. Continuing to use them can expose build environments to unpatched vulnerabilities and increase provisioning time. Deprecation does not mean that AWS prevents builds from running.
Impactβ
Moving to a current image can change runtimes, tools, operating-system packages, and default behavior. Test the project's buildspec and dependencies before updating production builds.
Auditβ
This policy marks an AWS CodeBuild Project as
INCOMPLIANTif itsEnvironment Imageexactly matches one of the following identifiers:
Image identifier Deprecation date aws/codebuild/standard:3.0June 30, 2022 aws/codebuild/amazonlinux2-x86_64-standard:2.0June 30, 2022 aws/codebuild/standard:4.0March 31, 2023 ... see more
Remediationβ
Remediationβ
From the AWS Consoleβ
- Record the existing environment settings and buildspec in version control. Open AWS CodeBuild in the project's Region, choose Build projects, select the affected project, and open Build details.
- In Environment, choose Edit.
- Choose Override image, then Managed image, and select a current operating system, runtime, and image version compatible with the project's architecture and compute type. AWS recommends Always use the latest image for this runtime version to receive image updates and benefit from caching. Confirm that the target image includes the runtimes your buildspec selects; runtime version numbers do not map directly to image tag numbers.
- Review changes to bundled runtimes and tools. Update the buildspec, runtime selections, package dependencies, and tests as needed.
- Preserve the remaining environment settings, choose Update configuration, and run a representative build without an image override. Verify its resolved image, tests, and artifacts before relying on the updated project for production delivery. Confirm that pipeline or runner overrides do not continue selecting a deprecated image.
... see more
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ Cloudaware Framework β πΌ Infrastructure Modernization | 39 | no data |