Skip to content
v2.274.0

Experimental

@aws-cdk/aws-apprunner-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AssetProps Struct ​

Properties of the image repository for Source.fromAsset().

Example ​

ts
import * as assets from 'aws-cdk-lib/aws-ecr-assets';

const imageAsset = new assets.DockerImageAsset(this, 'ImageAssets', {
  directory: path.join(__dirname, 'docker.assets'),
});
new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromAsset({
    imageConfiguration: { port: 8000 },
    asset: imageAsset,
  }),
  autoDeploymentsEnabled: true,
});

Properties ​

Represents the docker image asset.
imageConfigurationoptionalImageConfigurationimage_configurationoptionalImageConfigurationimageConfigurationoptionalImageConfigurationImageConfigurationoptionalImageConfigurationImageConfigurationoptionalImageConfiguration#
The image configuration for the image built from the asset.

Default: no image configuration will be passed. The default port will be 8080.