aws-ecr-assets: TarballImageAsset hardcodes container runtime. #31317
Labels
@aws-cdk/aws-ecr-assets
Related to AWS CDK Docker Image Assets
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
Describe the bug
aws-ecr-assets.TarballImageAsset
currently hardcodes the container runtime for the image load command.https://github.com/aws/aws-cdk/blob/v2.155.0/packages/aws-cdk-lib/aws-ecr-assets/lib/tarball-asset.ts#L80
Regression Issue
Last Known Working CDK Version
None.
Expected Behavior
aws-ecr-assets.TarballImageAsset
should use the undocumented (#25657)CDK_DOCKER
environment variable introduced by #23855.Alternatively, use the proposed container runtime configuration in
cdk.json
(#31319).Current Behavior
aws-ecr-assets.TarballImageAsset
hardcodesdocker
.Reproduction Steps
Using
aws-ecr-assets.TarballImageAsset
as documented produces the following{stack}.assets.json
:CDK CLI Version
2.155.0
Framework Version
2.155.0
Node.js Version
20.16.0
OS
macOS 14 (Sonoma)
Language
TypeScript
Language Version
5.5.4
The text was updated successfully, but these errors were encountered: