quiet-crayon-85132
08/10/2023, 9:21 PMimage: image.imageUri,
in my taskdefinition. If i hard code the string it works, which is strange. Any guidance? I dont believe ECS has any restrictions on the length of this field:
Diagnostics:
aws:ecs:TaskDefinition (service):
error: 1 error occurred:
* failed creating ECS Task Definition (service-b4d7f7a8): ClientException: Container.image repository should be 255 characters or less.
little-cartoon-10569
08/10/2023, 9:26 PMpulumi.interpolate
. So your URI is actually a big long error message.quiet-crayon-85132
08/10/2023, 9:29 PMlittle-cartoon-10569
08/10/2023, 9:35 PMfull-eve-52536
08/10/2023, 9:36 PMimage.imageUri
is at that point, since technically it's part of `image`s Outputquiet-crayon-85132
08/10/2023, 9:36 PM"@pulumi/awsx": "^1.0.0",
little-cartoon-10569
08/10/2023, 9:36 PMfull-eve-52536
08/10/2023, 9:37 PMapply
function be needed here?
https://www.pulumi.com/docs/concepts/inputs-outputs/#applylittle-cartoon-10569
08/10/2023, 9:38 PMquiet-crayon-85132
08/10/2023, 9:38 PMfull-eve-52536
08/10/2023, 9:40 PMimage:
property expects a string, so it would need to use interpolate
little-cartoon-10569
08/10/2023, 9:46 PMconst containerString = containerDefinitions.apply((d) => JSON.stringify(d));
But.. I'm not convinced. I think you should test this.image: image.imageUri
, try
image: pulumi.interpolate`image.imageUri`
quiet-crayon-85132
08/10/2023, 9:52 PM${}
?
image: pulumi.interpolate`${image.imageUri}`,
full-eve-52536
08/10/2023, 9:53 PMapply
builtin). You've given me tons of insight @little-cartoon-10569!quiet-crayon-85132
08/10/2023, 9:54 PMimage: image.imageUri
directly without interpolate, gonna give interpolate a shotlittle-cartoon-10569
08/10/2023, 9:59 PMquiet-crayon-85132
08/10/2023, 9:59 PM1.0.4
from 1.0.1
and it worked, so i guess something was fixed in a recent minor version