I'm building my infrastructure on AWS with CLoudFormation and I want to create a Lambda Function that pull the code image from ECR. So I added to my CloudFormation template one Lambda resource depending on a ECR repository resource. The problem is that Lambda template requires the "imageUri" properties, but actually I don't know it because the image does not exists and the ECR repository is not created yet.
Should I first create an ECR and push the image and only then edit the whole CLoudformation template adding the Lambda resource?
Honestly I don't like this approach since I prefer my whole infrastructure would be built before any software work.
No, it's not possible. The best you could get is to build a 'hello world' type container and use that in the lambda. You can then update the lambda when you've written the real thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With