https://dagster.io/ logo
Title
k

Kyle

10/11/2022, 11:09 PM
I’m running Dagster on ECS with Fargate and I’m trying to mount an EFS file system and running into issues that I think are security group related. But I’m a little confused on how I can specify a security group for the task that gets ran, does anyone have any idea how to do that?
d

daniel

10/12/2022, 1:02 AM
Hey Kyle - by default it will use the same security group as the task where you're launching your run from. We just recently added a way to override that to use a different security group: https://docs.dagster.io/deployment/guides/aws#customizing-the-launched-runs-task so you could swap in your own networkConfiguration (including a security group) like this:
run_launcher:
  module: "dagster_aws.ecs"
  class: "EcsRunLauncher"
  config:
    run_task_kwargs:
      networkConfiguration:
        awsvpcConfiguration:
          subnets:
            - your_subnet_here
          assignPublicIp: true
          securityGroups:
            - your_security_group_here
k

Kyle

10/12/2022, 6:53 PM
Thanks daniel, that’s really helpful, I’ll give that a shot later!