AWS Native is in preview. AWS Classic is fully supported.
aws-native.mwaa.Environment
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource schema for AWS::MWAA::Environment
Create Environment Resource
new Environment(name: string, args?: EnvironmentArgs, opts?: CustomResourceOptions);
@overload
def Environment(resource_name: str,
opts: Optional[ResourceOptions] = None,
airflow_configuration_options: Optional[Any] = None,
airflow_version: Optional[str] = None,
dag_s3_path: Optional[str] = None,
environment_class: Optional[str] = None,
execution_role_arn: Optional[str] = None,
kms_key: Optional[str] = None,
logging_configuration: Optional[EnvironmentLoggingConfigurationArgs] = None,
max_workers: Optional[int] = None,
min_workers: Optional[int] = None,
name: Optional[str] = None,
network_configuration: Optional[EnvironmentNetworkConfigurationArgs] = None,
plugins_s3_object_version: Optional[str] = None,
plugins_s3_path: Optional[str] = None,
requirements_s3_object_version: Optional[str] = None,
requirements_s3_path: Optional[str] = None,
schedulers: Optional[int] = None,
source_bucket_arn: Optional[str] = None,
startup_script_s3_object_version: Optional[str] = None,
startup_script_s3_path: Optional[str] = None,
tags: Optional[Any] = None,
webserver_access_mode: Optional[EnvironmentWebserverAccessMode] = None,
weekly_maintenance_window_start: Optional[str] = None)
@overload
def Environment(resource_name: str,
args: Optional[EnvironmentArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewEnvironment(ctx *Context, name string, args *EnvironmentArgs, opts ...ResourceOption) (*Environment, error)
public Environment(string name, EnvironmentArgs? args = null, CustomResourceOptions? opts = null)
public Environment(String name, EnvironmentArgs args)
public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
type: aws-native:mwaa:Environment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Environment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Environment resource accepts the following input properties:
- Airflow
Configuration objectOptions Key/value pairs representing Airflow configuration variables. Keys are prefixed by their section:
[core] dags_folder={AIRFLOW_HOME}/dags
Would be represented as
"core.dags_folder": "{AIRFLOW_HOME}/dags"
- Airflow
Version string - Dag
S3Path string - Environment
Class string - Execution
Role stringArn - Kms
Key string - Logging
Configuration Pulumi.Aws Native. Mwaa. Inputs. Environment Logging Configuration - Max
Workers int - Min
Workers int - Name string
- Network
Configuration Pulumi.Aws Native. Mwaa. Inputs. Environment Network Configuration - Plugins
S3Object stringVersion - Plugins
S3Path string - Requirements
S3Object stringVersion - Requirements
S3Path string - Schedulers int
- Source
Bucket stringArn - Startup
Script stringS3Object Version - Startup
Script stringS3Path - object
A map of tags for the environment.
- Webserver
Access Pulumi.Mode Aws Native. Mwaa. Environment Webserver Access Mode - Weekly
Maintenance stringWindow Start
- Airflow
Configuration interface{}Options Key/value pairs representing Airflow configuration variables. Keys are prefixed by their section:
[core] dags_folder={AIRFLOW_HOME}/dags
Would be represented as
"core.dags_folder": "{AIRFLOW_HOME}/dags"
- Airflow
Version string - Dag
S3Path string - Environment
Class string - Execution
Role stringArn - Kms
Key string - Logging
Configuration EnvironmentLogging Configuration Args - Max
Workers int - Min
Workers int - Name string
- Network
Configuration EnvironmentNetwork Configuration Args - Plugins
S3Object stringVersion - Plugins
S3Path string - Requirements
S3Object stringVersion - Requirements
S3Path string - Schedulers int
- Source
Bucket stringArn - Startup
Script stringS3Object Version - Startup
Script stringS3Path - interface{}
A map of tags for the environment.
- Webserver
Access EnvironmentMode Webserver Access Mode - Weekly
Maintenance stringWindow Start
- airflow
Configuration ObjectOptions Key/value pairs representing Airflow configuration variables. Keys are prefixed by their section:
[core] dags_folder={AIRFLOW_HOME}/dags
Would be represented as
"core.dags_folder": "{AIRFLOW_HOME}/dags"
- airflow
Version String - dag
S3Path String - environment
Class String - execution
Role StringArn - kms
Key String - logging
Configuration EnvironmentLogging Configuration - max
Workers Integer - min
Workers Integer - name String
- network
Configuration EnvironmentNetwork Configuration - plugins
S3Object StringVersion - plugins
S3Path String - requirements
S3Object StringVersion - requirements
S3Path String - schedulers Integer
- source
Bucket StringArn - startup
Script StringS3Object Version - startup
Script StringS3Path - Object
A map of tags for the environment.
- webserver
Access EnvironmentMode Webserver Access Mode - weekly
Maintenance StringWindow Start
- airflow
Configuration anyOptions Key/value pairs representing Airflow configuration variables. Keys are prefixed by their section:
[core] dags_folder={AIRFLOW_HOME}/dags
Would be represented as
"core.dags_folder": "{AIRFLOW_HOME}/dags"
- airflow
Version string - dag
S3Path string - environment
Class string - execution
Role stringArn - kms
Key string - logging
Configuration EnvironmentLogging Configuration - max
Workers number - min
Workers number - name string
- network
Configuration EnvironmentNetwork Configuration - plugins
S3Object stringVersion - plugins
S3Path string - requirements
S3Object stringVersion - requirements
S3Path string - schedulers number
- source
Bucket stringArn - startup
Script stringS3Object Version - startup
Script stringS3Path - any
A map of tags for the environment.
- webserver
Access EnvironmentMode Webserver Access Mode - weekly
Maintenance stringWindow Start
- airflow_
configuration_ Anyoptions Key/value pairs representing Airflow configuration variables. Keys are prefixed by their section:
[core] dags_folder={AIRFLOW_HOME}/dags
Would be represented as
"core.dags_folder": "{AIRFLOW_HOME}/dags"
- airflow_
version str - dag_
s3_ strpath - environment_
class str - execution_
role_ strarn - kms_
key str - logging_
configuration EnvironmentLogging Configuration Args - max_
workers int - min_
workers int - name str
- network_
configuration EnvironmentNetwork Configuration Args - plugins_
s3_ strobject_ version - plugins_
s3_ strpath - requirements_
s3_ strobject_ version - requirements_
s3_ strpath - schedulers int
- source_
bucket_ strarn - startup_
script_ strs3_ object_ version - startup_
script_ strs3_ path - Any
A map of tags for the environment.
- webserver_
access_ Environmentmode Webserver Access Mode - weekly_
maintenance_ strwindow_ start
- airflow
Configuration AnyOptions Key/value pairs representing Airflow configuration variables. Keys are prefixed by their section:
[core] dags_folder={AIRFLOW_HOME}/dags
Would be represented as
"core.dags_folder": "{AIRFLOW_HOME}/dags"
- airflow
Version String - dag
S3Path String - environment
Class String - execution
Role StringArn - kms
Key String - logging
Configuration Property Map - max
Workers Number - min
Workers Number - name String
- network
Configuration Property Map - plugins
S3Object StringVersion - plugins
S3Path String - requirements
S3Object StringVersion - requirements
S3Path String - schedulers Number
- source
Bucket StringArn - startup
Script StringS3Object Version - startup
Script StringS3Path - Any
A map of tags for the environment.
- webserver
Access "PRIVATE_ONLY" | "PUBLIC_ONLY"Mode - weekly
Maintenance StringWindow Start
Outputs
All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:
- Arn string
- Id string
The provider-assigned unique ID for this managed resource.
- Webserver
Url string
- Arn string
- Id string
The provider-assigned unique ID for this managed resource.
- Webserver
Url string
- arn String
- id String
The provider-assigned unique ID for this managed resource.
- webserver
Url String
- arn string
- id string
The provider-assigned unique ID for this managed resource.
- webserver
Url string
- arn str
- id str
The provider-assigned unique ID for this managed resource.
- webserver_
url str
- arn String
- id String
The provider-assigned unique ID for this managed resource.
- webserver
Url String
Supporting Types
EnvironmentLoggingConfiguration, EnvironmentLoggingConfigurationArgs
- Dag
Processing Pulumi.Logs Aws Native. Mwaa. Inputs. Environment Module Logging Configuration - Scheduler
Logs Pulumi.Aws Native. Mwaa. Inputs. Environment Module Logging Configuration - Task
Logs Pulumi.Aws Native. Mwaa. Inputs. Environment Module Logging Configuration - Webserver
Logs Pulumi.Aws Native. Mwaa. Inputs. Environment Module Logging Configuration - Worker
Logs Pulumi.Aws Native. Mwaa. Inputs. Environment Module Logging Configuration
EnvironmentLoggingLevel, EnvironmentLoggingLevelArgs
- Critical
- CRITICAL
- Error
- ERROR
- Warning
- WARNING
- Info
- INFO
- Debug
- DEBUG
- Environment
Logging Level Critical - CRITICAL
- Environment
Logging Level Error - ERROR
- Environment
Logging Level Warning - WARNING
- Environment
Logging Level Info - INFO
- Environment
Logging Level Debug - DEBUG
- Critical
- CRITICAL
- Error
- ERROR
- Warning
- WARNING
- Info
- INFO
- Debug
- DEBUG
- Critical
- CRITICAL
- Error
- ERROR
- Warning
- WARNING
- Info
- INFO
- Debug
- DEBUG
- CRITICAL
- CRITICAL
- ERROR
- ERROR
- WARNING
- WARNING
- INFO
- INFO
- DEBUG
- DEBUG
- "CRITICAL"
- CRITICAL
- "ERROR"
- ERROR
- "WARNING"
- WARNING
- "INFO"
- INFO
- "DEBUG"
- DEBUG
EnvironmentModuleLoggingConfiguration, EnvironmentModuleLoggingConfigurationArgs
- cloud
Watch StringLog Group Arn - enabled Boolean
- log
Level EnvironmentLogging Level
- cloud
Watch stringLog Group Arn - enabled boolean
- log
Level EnvironmentLogging Level
EnvironmentNetworkConfiguration, EnvironmentNetworkConfigurationArgs
- Security
Group List<string>Ids A list of security groups to use for the environment.
- Subnet
Ids List<string> A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
- Security
Group []stringIds A list of security groups to use for the environment.
- Subnet
Ids []string A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
- security
Group List<String>Ids A list of security groups to use for the environment.
- subnet
Ids List<String> A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
- security
Group string[]Ids A list of security groups to use for the environment.
- subnet
Ids string[] A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
- security_
group_ Sequence[str]ids A list of security groups to use for the environment.
- subnet_
ids Sequence[str] A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
- security
Group List<String>Ids A list of security groups to use for the environment.
- subnet
Ids List<String> A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
EnvironmentWebserverAccessMode, EnvironmentWebserverAccessModeArgs
- Private
Only - PRIVATE_ONLY
- Public
Only - PUBLIC_ONLY
- Environment
Webserver Access Mode Private Only - PRIVATE_ONLY
- Environment
Webserver Access Mode Public Only - PUBLIC_ONLY
- Private
Only - PRIVATE_ONLY
- Public
Only - PUBLIC_ONLY
- Private
Only - PRIVATE_ONLY
- Public
Only - PUBLIC_ONLY
- PRIVATE_ONLY
- PRIVATE_ONLY
- PUBLIC_ONLY
- PUBLIC_ONLY
- "PRIVATE_ONLY"
- PRIVATE_ONLY
- "PUBLIC_ONLY"
- PUBLIC_ONLY
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.