create_environment
Create a new Amazon MWAA environment by configuring DAG storage, network settings, Airflow version, worker capacity, and access controls for workflow orchestration.
Instructions
Create a new MWAA environment.
Args: name: Environment name dag_s3_path: S3 path to DAGs folder (e.g., s3://bucket/dags) execution_role_arn: IAM role ARN for the environment network_configuration: VPC configuration with SubnetIds and SecurityGroupIds source_bucket_arn: ARN of the S3 bucket containing DAGs airflow_version: Apache Airflow version (e.g., "2.7.2") environment_class: Environment size (mw1.small, mw1.medium, mw1.large, mw1.xlarge, mw1.2xlarge) max_workers: Maximum number of workers (1-25) min_workers: Minimum number of workers (1-25) schedulers: Number of schedulers (2-5) webserver_access_mode: PUBLIC_ONLY or PRIVATE_ONLY weekly_maintenance_window_start: Maintenance window start (e.g., "SUN:03:00") tags: Resource tags airflow_configuration_options: Airflow configuration overrides logging_configuration: Logging settings for different components requirements_s3_path: S3 path to requirements.txt plugins_s3_path: S3 path to plugins.zip startup_script_s3_path: S3 path to startup script
Returns: Dictionary containing the ARN of the created environment
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| dag_s3_path | Yes | ||
| execution_role_arn | Yes | ||
| network_configuration | Yes | ||
| source_bucket_arn | Yes | ||
| airflow_version | No | ||
| environment_class | No | ||
| max_workers | No | ||
| min_workers | No | ||
| schedulers | No | ||
| webserver_access_mode | No | ||
| weekly_maintenance_window_start | No | ||
| tags | No | ||
| airflow_configuration_options | No | ||
| logging_configuration | No | ||
| requirements_s3_path | No | ||
| plugins_s3_path | No | ||
| startup_script_s3_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||