Copy container image to an ECR repository based on the go-containerregistry library
docker run -it --rm -v ~/.aws:/.aws -e AWS_DEFAULT_PROFILE=dev -p 9100:8080 \
--entrypoint /usr/local/bin/aws-lambda-rie \
docker-image:test ./main
curl --location --request GET 'http://localhost:9100/2015-03-31/functions/function/invocations' \
--header 'Content-Type: application/json' \
--data '{
"body": "{\"src\":\"busybox:uclibc\",\"dest\":\"835389108797.dkr.ecr.eu-central-1.amazonaws.com/nginx:0.3\"}"
}'
- Add AWS IaC