So I've looked through these docs and a few others...
# getting-started
m
So I've looked through these docs and a few others: https://www.pulumi.com/docs/clouds/aws/guides/ecr/ https://www.pulumi.com/blog/building-and-publishing-docker-images-to-a-private-amazon-ecr-repository/ Is there a way to push an existing already built docker image to ECR from within pulumi JS/TS? (without using docker CLI) Edit: it's either this or how do I actually get the URI of the ECR image out of the js/ts file to use within CICD or do I literally have to do child_process exec and insert it that way lmfao I just want to take an existing image on the file system and push it to ECR, the URL of which comes from a js/ts file.
s
If you want to keep track of your upload in the Pulumi's stack/state, then maybe a LocalCommand could come in useful? https://github.com/pulumi/pulumi-command
m
interesting!! thank you
c
Looking at the actual implementation of the
awsx
ecr bit may help clarify too:: https://github.com/pulumi/pulumi-awsx/blob/master/awsx/ecr/image.ts
m
is this due to pulumi's design inclination toward tracking dirty vs clean resources ?
implementation aside also trying to pick up on the overall design methodology
tyvm for all the input