This message was deleted.
# general
s
This message was deleted.
a
We have also tried to get an existing repository per
<https://www.pulumi.com/docs/reference/pkg/aws/ecr/getrepository/>
and use that value thinking it may be something with the repo that hadnt yet been created, but that ended up throwing the same error
s
maybe something like follows works:
Copy code
const batchJobDefinition = new aws.batch.JobDefinition(
    'image_processor_pulumi',
    {
        name: 'image_processor_job_definition_pulumi',
        retryStrategy: { attempts: 3 },
        timeout: { attemptDurationSeconds: 1200 },
        containerProperties: pulumi.interpolate`{
    "command": [ "blah" ],
    "image": "${ecrRepository.repositoryUrl}",
    "memory": 1024,
    "vcpus": 1,
    "otherprops" ...
}
`,
        type: 'container',
    },
    {
        dependsOn: [ecrRepository],
    },
);
a
🙏 🙌 worked! Thank You!