Skip to content

Commit

Permalink
Merge pull request #31 from TRANTANKHOA/patch-1
Browse files Browse the repository at this point in the history
Update index.ts
  • Loading branch information
wchaws authored Apr 30, 2021
2 parents 1f90e3d + da90527 commit 1124bcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';

// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct as CoreConstruct } from '@aws-cdk/core';
import { AssetHashType, Construct as CoreConstruct } from '@aws-cdk/core';

export interface ECRDeploymentProps {
/**
Expand Down Expand Up @@ -87,6 +87,7 @@ export class ECRDeployment extends CoreConstruct {
const handler = new lambda.SingletonFunction(this, 'CustomResourceHandler', {
uuid: this.renderSingletonUuid(props.memoryLimit),
code: lambda.Code.fromAsset(path.join(__dirname, '../lambda'), {
assetHashType: AssetHashType.SOURCE, // see https://github.com/aws/aws-cdk/pull/12984
bundling: {
image: lambda.Runtime.GO_1_X.bundlingImage,
environment: Object.assign({
Expand Down Expand Up @@ -166,4 +167,4 @@ export class ECRDeployment extends CoreConstruct {

return uuid;
}
}
}

0 comments on commit 1124bcf

Please sign in to comment.