edkeeble / mwaa_tf_module

Base MWAA TF module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Amazon MWAA

Description

Secure and highly available managed workflow orchestration for Apache Airflow. source

Requirements

How to deploy

$cp .env.example .env
$bash deploy.sh

Example start a dag with boto3

import requests
import boto3
client = boto3.client('mwaa')
token = client.create_cli_token(Name='<env_name>')
url = f"https://{token['WebServerHostname']}/aws_mwaa/cli"
headers = {
'Authorization' : 'Bearer ' + token['CliToken'],
 'Content-Type': 'text/plain'
}
body = 'dags trigger <dag_id>'
requests.post(url, data=body, headers=headers)

About

Base MWAA TF module


Languages

Language:HCL 76.5%Language:Python 20.3%Language:Shell 3.2%