create-environment
Create a new Amazon MWAA environment by specifying DAGs S3 path, IAM role, VPC networking, and Airflow options. The operation runs asynchronously, with status CREATING until ready.
Instructions
Create a new MWAA environment.
Creates an Amazon MWAA environment with the specified configuration. This operation
is asynchronous — the environment status will be CREATING until ready.
Requires the --allow-write flag.
Args:
ctx: The MCP context.
environment_name: Name for the new environment.
dag_s3_path: S3 path to the DAGs folder.
execution_role_arn: IAM execution role ARN.
source_bucket_arn: S3 bucket ARN for DAGs and plugins.
network_configuration: VPC network configuration.
airflow_version: Optional Airflow version.
environment_class: Optional environment size class.
max_workers: Optional maximum worker count.
region: AWS region override.
profile_name: AWS CLI profile name override.
Returns:
CallToolResult with the created environment ARN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | AWS region. Defaults to AWS_REGION env var or us-east-1. | |
| dag_s3_path | Yes | Relative path to the DAGs folder in the S3 bucket (e.g., "dags/"). | |
| max_workers | No | Maximum number of workers for auto-scaling. | |
| profile_name | No | AWS CLI profile name. Falls back to AWS_PROFILE env var. | |
| airflow_version | No | Apache Airflow version (e.g., "2.8.1"). Defaults to latest. | |
| environment_name | Yes | Name for the new MWAA environment (1-80 characters). | |
| environment_class | No | Environment class: "mw1.small", "mw1.medium", or "mw1.large". | |
| source_bucket_arn | Yes | ARN of the S3 bucket containing DAGs and plugins. | |
| execution_role_arn | Yes | ARN of the IAM execution role for the environment. | |
| network_configuration | Yes | Network configuration with SecurityGroupIds (list of VPC security group IDs) and SubnetIds (list of VPC subnet IDs, minimum 2 in different AZs). |