Skip to content

Commit 1d2c19e

Browse files
committed
fix readme
1 parent 7cb2c27 commit 1d2c19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-ecr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ You can publish repository events to a CloudWatch event rule with `onEvent`:
217217
import * as lambda from 'aws-cdk-lib/aws-lambda';
218218

219219
const repo = new ecr.Repository(this, 'Repo');
220-
const lambdaFunction = new lambda.Function(stack, 'LambdaFunction', {
220+
const lambdaFunction = new lambda.Function(this, 'LambdaFunction', {
221221
runtime: lambda.Runtime.PYTHON_3_12,
222222
code: lambda.Code.fromInline('# dummy func'),
223223
handler: 'index.handler',

0 commit comments

Comments
 (0)