This message was deleted.
# python
s
This message was deleted.
m
Something like
Copy code
import pulumi
import pulumi_awsx as awsx

repository = awsx.ecr.Repository("repository")
image = awsx.ecr.Image("image",
    repository_url=repository.url,
    path="./app")

lambda_function = aws.lambda_.Function("mylambda",
    role=iam.lambda_role.arn,
    runtime="python3.7",
    handler="hello.handler",
    image_config={ command: ["mylambda.handler"] },
)
And here is a much older example (I believe there are differences with the SDK now) https://github.com/pulumi/pulumitv/tree/master/modern-infrastructure-wednesday/2020-12-09
p
And here's an official TypeScript example, for reference – https://github.com/pulumi/examples/blob/master/aws-ts-lambda-thumbnailer/index.ts.