CI Perf Lint

cdk-bucket-deployment-memory-unconfigured

What it flags

CDK code that uses BucketDeployment without setting the memoryLimit property.

Why it matters

BucketDeployment uses a Lambda-backed custom resource. Without explicit memoryLimit, Lambda defaults to 128 MB — often too low for processing non-trivial website assets, resulting in slow deploy times.

Add memoryLimit to the BucketDeployment construct props:

new BucketDeployment(this, "Deployment", {
  sources: [Source.asset("./dist")],
  destinationBucket: bucket,
  memoryLimit: 1024,
});

Caveats