Skip to main content

environment

Gets an individual environment resource

Overview

Nameenvironment
TypeResource
Descriptionenvironment
Idawscc.mwaa.environment

Fields

NameDatatypeDescription
namestring
arnstring
webserver_urlstring
execution_role_arnstring
kms_keystring
airflow_versionstring
source_bucket_arnstring
dag_s3_pathstring
plugins_s3_pathstring
plugins_s3_object_versionstring
requirements_s3_pathstring
requirements_s3_object_versionstring
startup_script_s3_pathstring
startup_script_s3_object_versionstring
airflow_configuration_optionsobjectKey/value pairs representing Airflow configuration variables.<br/> Keys are prefixed by their section:<br/><br/> [core]<br/> dags_folder={AIRFLOW_HOME}/dags<br/><br/> Would be represented as<br/><br/> "core.dags_folder": "{AIRFLOW_HOME}/dags"
environment_classstring
max_workersinteger
min_workersinteger
schedulersinteger
network_configurationobject
logging_configurationobject
weekly_maintenance_window_startstring
tagsobjectA map of tags for the environment.
webserver_access_modestring
endpoint_managementstring
celery_executor_queuestring
database_vpc_endpoint_servicestring
webserver_vpc_endpoint_servicestring
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
name,
arn,
webserver_url,
execution_role_arn,
kms_key,
airflow_version,
source_bucket_arn,
dag_s3_path,
plugins_s3_path,
plugins_s3_object_version,
requirements_s3_path,
requirements_s3_object_version,
startup_script_s3_path,
startup_script_s3_object_version,
airflow_configuration_options,
environment_class,
max_workers,
min_workers,
schedulers,
network_configuration,
logging_configuration,
weekly_maintenance_window_start,
tags,
webserver_access_mode,
endpoint_management,
celery_executor_queue,
database_vpc_endpoint_service,
webserver_vpc_endpoint_service
FROM awscc.mwaa.environment
WHERE data__Identifier = '<Name>';

Permissions

To operate on the environment resource, the following permissions are required:

Read

airflow:GetEnvironment

Update

airflow:UpdateEnvironment,
airflow:TagResource,
airflow:UntagResource

Delete

airflow:DeleteEnvironment