本文介绍了如何在 AWS Managed Workflows for Apache Airflow 中启用 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试通过

注意:强烈建议不要使用 airflow.api.auth.backend.default,因为它会让您的环境可公开访问.

[2021/07/29] 基于此 评论,AWS 阻止了对 REST API 的访问.

I'm testing the waters for running Apache Airflow on AWS through the Managed Workflows for Apache Airflow (MWAA). The version of Airflow that AWS have deployed and are managing for me is 1.10.12.

When I try to access the v1 REST API at /api/experimental/test I get back status code 403 Forbidden.

Is it possible to enable the experimental API in MWAA? How?

解决方案

By default, api.auth_backend configuration option is set to airflow.api.auth.backend.deny_all in MWAA environments. You need to override it to one of the authentication methods mentioned in the documentation as shown in the figure bellow:

Note: it is highly discouraged to use airflow.api.auth.backend.default as it'llleave your environment publicly accessible.

[2021/07/29] Edit:Based on this comment, AWS blocked access to the REST API.

这篇关于如何在 AWS Managed Workflows for Apache Airflow 中启用 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 06:15