https://pulumi.com logo
Title
q

quiet-helmet-40109

01/27/2023, 7:56 PM
Hi guys, i am running into some issues trying to run a simple script on an existing ECS container using pulumi. Is there anything from pulumi to execute single use task for archiving this ?
w

white-balloon-205

01/28/2023, 12:14 AM
The Command provider is one option that might help? https://www.pulumi.com/registry/packages/command/
q

quiet-helmet-40109

01/28/2023, 12:47 AM
Gonna take a look, thanks @white-balloon-205 In my case the command I need to execute is inside the ecs image, so I was looking for executing some fargate task, but I might think in a workaround for this use case
w

white-balloon-205

01/28/2023, 1:19 AM
Ahh - I see. You could potentially consider using Command to run an
aws
CLI command to run the task, or use the AWS SDK in your language of choice inside an
apply
.