aws-samples / dataops-platform-airflow-dbt

Build DataOps platform with Apache Airflow and dbt on AWS
https://aws.amazon.com/tr/blogs/big-data/build-a-dataops-platform-to-break-silos-between-engineers-and-analysts/?nc1=h_ls&advocacy_source=everyonesocial&trk=global_employee_advocacy&sc_channel=sm&es_id=ab2ae17684
MIT No Attribution
51 stars 14 forks source link

cdk error - ecsTaskExecutionRole already exists #1

Closed dalbhanj closed 3 years ago

dalbhanj commented 3 years ago

I was getting this error when I ran make deploy. AirflowClusterStack: creating CloudFormation changeset... 2:20:17 PM | CREATE_FAILED | AWS::IAM::Role | ecsTaskExecutionRole34F54B99 ecsTaskExecutionRole already exists

Looks like the issue is because the IAM role (ecsTaskExecutionRole) already exists.

You can resolve this issue if you add custom name to the IAM role on line 23 of /infra/stacks/airflow_cluster_stack.py

rickybasse commented 3 years ago

Hi @dalbhanj! Thanks for raising this. Fixed in https://github.com/aws-samples/dataops-platform-airflow-dbt/pull/5