frgrisk / terraform-aws-turbo-deploy

MIT License
0 stars 0 forks source link

Create private ECR Image for Terraform Lambda Container #3

Closed hskiba closed 2 months ago

hskiba commented 2 months ago

Right now, the module builds a docker container by shelling out to the OS. This means that the host running terraform apply needs to have Docker installed and sufficient space, etc. to build the container. Instead, publish a public container to ECR, and reference it in this module. The container source and build should happen as part of the https://github.com/frgrisk/turbo-deploy repo (I think you'll need to move some stuff from this repo to there).

zeteoh commented 2 months ago

might need some help here, tried this yesterday and i ran into some issue, tried with docker hub as well

luqmanbazran commented 2 months ago

I'll give it a try

zeteoh commented 2 months ago

With @luqmanbazran help, we discovered that Lambda does not currently support using images from ECR Public

  1. https://stackoverflow.com/questions/67330890/using-a-public-ecr-image-for-lambda-function
  2. https://repost.aws/questions/QUEgw2bC3aTV2hmssdD5bYfA/how-to-use-a-public-ecr-with-aws-lambda