https://dagster.io/ logo
#deployment-ecs
Title
# deployment-ecs
j

Jakub Zgrzebnicki

07/26/2023, 10:39 AM
Hi, I have tried to switch running ECS tasks from FARGATE to EC2, but have problem. From dagit I can see that tasks are sent do AWS, but in deamon logs I get: botocore.exceptions.NoRegionError: You must specify a region. when RunLauncher try to access self.ecs = boto3.client("ecs"). Dagit, daemon and API code location are running ini Fargate tasks. All i did was to add:
Copy code
config:
  include_sidecars: true
  run_task_kwargs:
    launchType: "EC2"
in daemon dagster.yaml
Did someone had similar problem?
j

jordan

07/26/2023, 2:23 PM
Can you make sure
AWS_DEFAULT_REGION
is set? That’s where boto3 typically sources the region from: https://github.com/aws/containers-roadmap/issues/1611
👍 1
j

Jakub Zgrzebnicki

07/27/2023, 5:26 AM
That was the issue indeed. Thanks
🙌 1
4 Views