0
0

More than 3 years have passed since last update.

Managed Workflows for Apache Airflow (MWAA)でAirflowコマンド実行

Last updated at Posted at 2020-12-29

ただのメモシリーズ

MWAAのAPIで環境のリスト

$ aws mwaa list-environments
{
    "Environments": [
        "demo-env",
        "demo-env-2"
    ]
}

MWAAへのAirflowAPIでAirflowバージョン取得

$ export WEB_SERVER_HOSTNAME="<MWAA Airflow UI Name>"
$ export CLI_TOKEN=`aws mwaa create-cli-token --name <MWAA Env Name> | jq -r .CliToken`
$ curl --request POST "https://$WEB_SERVER_HOSTNAME/aws_mwaa/cli" --header "Authorization: Bearer $CLI_TOKEN" --header "Content-Type: text/plain" --data-raw "version" | jq -r .stdout | base64 –d
1.10.12

CreateCliToken
AmazonMWAA環境でのApacheAirflowオペレーションのAWSCLIリクエストを認証するために使用されるトークンを作成します。

Airflow CLI

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0