update_environment
Modify configuration parameters for an existing Amazon Managed Workflows for Apache Airflow (MWAA) environment, including DAG paths, scaling settings, and Airflow versions.
Instructions
Update an existing MWAA environment configuration.
Only provide the parameters you want to change.
Args: name: Environment name dag_s3_path: S3 path to DAGs folder execution_role_arn: IAM role ARN network_configuration: VPC configuration source_bucket_arn: S3 bucket ARN airflow_version: Apache Airflow version environment_class: Environment size max_workers: Maximum workers min_workers: Minimum workers schedulers: Number of schedulers webserver_access_mode: Access mode weekly_maintenance_window_start: Maintenance window airflow_configuration_options: Configuration overrides logging_configuration: Logging settings requirements_s3_path: Path to requirements.txt plugins_s3_path: Path to plugins.zip startup_script_s3_path: Path to startup script
Returns: Dictionary containing the environment ARN
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| dag_s3_path | No | ||
| execution_role_arn | No | ||
| network_configuration | No | ||
| source_bucket_arn | No | ||
| airflow_version | No | ||
| environment_class | No | ||
| max_workers | No | ||
| min_workers | No | ||
| schedulers | No | ||
| webserver_access_mode | No | ||
| weekly_maintenance_window_start | 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 | |||