Hi all, I'm trying to deploy a lambda function with pulumi. This lambda function references the URL ...
k
Hi all, I'm trying to deploy a lambda function with pulumi. This lambda function references the URL of ECR, so when deploying, can I deploy ECR and lambda at the same time? If it can’t, should I deploy ECR first and then deploy the lambda function? (I used LookupRepository function)
g
Hi Sangwoo 👋, you should be able to deploy both ECR & Lambda in the same Pulumi program. Check out this example: https://github.com/pulumi/examples/tree/master/aws-ts-lambda-thumbnailer
l
Generally, Pulumi projects should describe resources that have aligned deployment schedules. For example, you probably want to update application infrastructure a lot more frequently than the persistent database underneath, so you should seriously consider using different projects for deploying the app and persistence infrastructure. With this in mind, and given than ECR is likely to be deployed a lot less frequently than business logic, you may want to have two separate projects, even though they can be in the same project.