https://pulumi.com logo
f

fresh-wire-95028

10/25/2021, 5:45 PM
What's the right way to run db migrations using pulumi? So say I set up a docker image that runs migrations, and then a Fargate Task with that container definition. how do I tell pulumi to start that container only once in fargate during my deploy?
so:
Copy code
const migrate = new awsx.ecs.FargateTaskDefinition('migrate', { containers: {
  migrate: {
    image: migrateImage
  }}});
Where does this go?
Copy code
migrate.run({
  cluster,
});
17 Views