Reputation: 181
Where can I find airflow.cfg file to setup email alerts in MWAA? In Airflow we setup in airflow.cfg file but Amazon Managed Apache Airflow is Serverless so where can to the configuration changes ? Do I also need to create my own .cfg file in S3 location like we have mentioned dags Directory in s3 location
Upvotes: 1
Views: 6670
Reputation: 551
You cant provide MWAA airflow.cfg
file, but you can override configuration.
The following procedure walks you through the steps of adding an Airflow configuration option to your environment.
You can read more about it here
You can also configure these options using cloudformation:
MWAA:
Type: AWS::MWAA::Environment
Properties:
Name: "my-mwaa"
AirflowVersion: "2.0.2"
EnvironmentClass: "mw1.small"
WebserverAccessMode: "PUBLIC_ONLY"
AirflowConfigurationOptions:
scheduler.catchup_by_default: False
smtp.smtp_host: "email-smtp.us-west-2.amazonaws.com"
smtp.smtp_user: "USER"
smtp.smtp_password: "AAAAAAAAAAAAA"
smtp.smtp_port: 587
smtp.smtp_mail_from: "[email protected]"
Upvotes: 4