adorable-gpu-98268
03/05/2022, 11:56 AM@pulumi/docker
package can be used to build docker images and then push them to e.g. an ecr
registry or it could pull images from remote registry however I’m wondering: Can I also just push images that I have build locally outside of pulumi? How would I do that?
I’d like to have a build that looks like this:
- build my docker images using other tooling
- pulumi up
echoing-dinner-19531
03/05/2022, 12:07 PM@pulumi/docker
is using the terraform docker provider (https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs) and it doesn't look like that supports just pushing built images to a registry.adorable-gpu-98268
03/05/2022, 12:17 PMpulumi up
to setup the ECR repositories
2. build the function images & push to the repos
3. call the second pulumi up
to setup and wire the lambda functionsechoing-dinner-19531
03/05/2022, 1:59 PMadorable-gpu-98268
03/05/2022, 2:49 PMechoing-dinner-19531
03/05/2022, 7:28 PMThe push only works when the ECR repository exists.It should be possible to depend on the ECR repository being created before running the command steps, just add it to the depends_on list.