Hi, I have tried to switch running ECS tasks from ...
# deployment-ecs
j
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
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
That was the issue indeed. Thanks
🙌 1