https://pulumi.com logo
Title
b

bumpy-translator-35180

07/20/2021, 7:40 AM
Hi, i'm trying to launch a docker on fargate with a custom start command, but I cant find how in the documentation. Is it possible ? or should I build an image that start the way I want with no custom command ?
b

broad-gold-44713

07/20/2021, 1:11 PM
Certainly possible. Use the
command
option for the containers definition:
const task = new awsx.ecs.FargateTaskDefinition(
  'app',
  {
    cpu: '1024',
    memory: '2048' /* MiB */,
    containers: {
      app: {
        image: "ubuntu",
        command: ['/start'],
      }
    }
  }
)
b

bumpy-translator-35180

07/20/2021, 1:15 PM
ooooh, great ! thanks. I'll try it tonight 🙂 thanks @broad-gold-44713