constructor()

in src/custom-layer/custom-layer.ts [11:19]


  constructor(scope: Construct, id: string) {
    super(scope, id, {
      code: lambda.Code.fromAsset(path.join(__dirname, 'layer.zip'), {
        // we hash the Dockerfile (it contains the tools versions) because hashing the zip is non-deterministic
        assetHash: hashFile(path.join(__dirname, 'Dockerfile')),
      }),
      description: 'custom layer with /opt/kubectl/kubectl and /opt/helm/helm',
    });
  }