aws-ecs-airflow icon indicating copy to clipboard operation
aws-ecs-airflow copied to clipboard

upgrade infrastructure and airflow for version 2.0

Open cicerojmm opened this issue 3 years ago • 2 comments

Airflow 2.0 in AWS ECS Fargate

Setup to run Airflow 2.0 in AWS ECS containers

Run Airflow 2.0 in AWS we will use ECS (Elastic Container Service) with components in AWS:

  • AWS ECS Fargate: run all Airflow services (Webserver, Flower, Workers and Scheduler);
  • ElasticCache (Redis): communication between Airflow Services;
  • RDS for Postgres: database MetadataDB for Airflow servies;
  • EFS: persistent storage for Airflow dags;
  • ELB: Application Load Balance for Airflow WebServer access;
  • CloudWatch: logs for container services and Airflow run tasks;
  • IAM: communications services permission for ECS containers;
  • ECR: image repository Docker for storage Airflow images.

cicerojmm avatar Oct 15 '21 02:10 cicerojmm

@cicerojmm thanks for your work, I'm not a big fan of using EFS to mount the dags. Instead, I prefer to bake new images and release the changes. Overall it looks good, I just need to test it out.

nicor88 avatar Oct 18 '21 18:10 nicor88

@cicerojmm thanks for your work, I'm not a big fan of using EFS to mount the dags. Instead, I prefer to bake new images and release the changes. Overall it looks good, I just need to test it out.

Thanks @nicor88 ! About EFS, do you see any problem using it or do you just prefer it? Because sometimes we have a requirement to synchronize dags directly from S3. In this case would you do otherwise?

cicerojmm avatar Oct 18 '21 18:10 cicerojmm