Skip to content

Conversation

@danxie1999
Copy link
Contributor

Why?

Now in the deployment map, if the codebuild image does not explicitly defined in the deployment map, the deployment will fail. I would like to add define a default build image for the ADF.

What?

An easy fix is to define the default build image in the src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk/cdk_constructs/adf_codebuild.py and set the build stage to optional in the src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/schema_validation.py.

Additionally, account_id should also be optional in the schema validation, as ADF 4.0 supports default source account id.

@danxie1999 danxie1999 force-pushed the feat/default_codebuild_image branch from 179349a to 164cfd2 Compare February 24, 2025 06:52
Copy link
Collaborator

@sbkok sbkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CodeBuild Image was made a required property on purpose in ADF v4.0.
As setting a default image implies we need to release a major release to change it, as it would require introducing a breaking change.

Could you change this PR, or maybe better, open a new one for the CodeCommit account id optional change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants