Mike Atlas
08/29/2022, 9:55 PMEcsRunLauncher
task definition to use the user-code task definition to inherit-from (this changes each new deployment) rather than the daemon's task?
in the docs, https://docs.dagster.io/deployment/guides/aws#launching-runs-in-ecs there's an example for run_launcher
config to specify a task_definition
ARN, but this value has to be set in the daemon configuration file.Alternatively, you can define your own task definition in your dagster.yaml:This ^ refers to the daemon config. And the code that loads the "self" task def from the daemon is https://github.com/dagster-io/dagster/blob/1.0.6/python_modules/libraries/dagster-aws/dagster_aws/ecs/launcher.py#L336
taskRoleArn
separately assigned for the user code and daemon taskstaskRoleArn
somewhere else? I see it's in metadata
so maybe I can just put the ARN in my user code?ecs/task_overrides
?ecs/task_overrides
maybe you have another example?@job(
tags = {
"ecs/task_overrides": {
"taskRoleArn": "goes-here",
}
}
)
maybe?tags = {
"ecs/task_overrides": {
"taskRoleArn": "goes-here",
}
}