AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the AmazonMWAA UpdateEnvironment API operation.

Syntax

Update-MWAAEnvironment
-Name <String>
-AirflowConfigurationOption <Hashtable>
-AirflowVersion <String>
-DagS3Path <String>
-DagProcessingLogs_Enabled <Boolean>
-SchedulerLogs_Enabled <Boolean>
-TaskLogs_Enabled <Boolean>
-WebserverLogs_Enabled <Boolean>
-WorkerLogs_Enabled <Boolean>
-EnvironmentClass <String>
-ExecutionRoleArn <String>
-DagProcessingLogs_LogLevel <LoggingLevel>
-SchedulerLogs_LogLevel <LoggingLevel>
-TaskLogs_LogLevel <LoggingLevel>
-WebserverLogs_LogLevel <LoggingLevel>
-WorkerLogs_LogLevel <LoggingLevel>
-MaxWorker <Int32>
-MinWorker <Int32>
-PluginsS3ObjectVersion <String>
-PluginsS3Path <String>
-RequirementsS3ObjectVersion <String>
-RequirementsS3Path <String>
-Scheduler <Int32>
-NetworkConfiguration_SecurityGroupId <String[]>
-SourceBucketArn <String>
-StartupScriptS3ObjectVersion <String>
-StartupScriptS3Path <String>
-WebserverAccessMode <WebserverAccessMode>
-WeeklyMaintenanceWindowStart <String>
-Select <String>
-PassThru <SwitchParameter>
-Force <SwitchParameter>
-ClientConfig <AmazonMWAAConfig>

Description

Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.

Parameters

-AirflowConfigurationOption <Hashtable>
A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see Apache Airflow configuration options.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAirflowConfigurationOptions
-AirflowVersion <String>
The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see Upgrading an Amazon MWAA environment.Valid values: 1.10.12, 2.0.2, 2.2.2, 2.4.3, 2.5.1, 2.6.3, 2.7.2.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientConfig <AmazonMWAAConfig>
Amazon.PowerShell.Cmdlets.MWAA.AmazonMWAAClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DagProcessingLogs_Enabled <Boolean>
Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_DagProcessingLogs_Enabled
-DagProcessingLogs_LogLevel <LoggingLevel>
Defines the Apache Airflow log level (e.g. INFO) to send to CloudWatch Logs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_DagProcessingLogs_LogLevel
-DagS3Path <String>
The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags. For more information, see Adding or updating DAGs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EnvironmentClass <String>
The environment class type. Valid values: mw1.small, mw1.medium, mw1.large. For more information, see Amazon MWAA environment class.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ExecutionRoleArn <String>
The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, arn:aws:iam::123456789:role/my-execution-role. For more information, see Amazon MWAA Execution role.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-MaxWorker <Int32>
The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. For example, 20. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in MinWorkers.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesMaxWorkers
-MinWorker <Int32>
The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the MaxWorkers field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the MinWorkers field. For example, 2.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesMinWorkers
-Name <String>
The name of your Amazon MWAA environment. For example, MyMWAAEnvironment.
Required?True
Position?1
Accept pipeline input?True (ByValue, ByPropertyName)
-NetworkConfiguration_SecurityGroupId <String[]>
A list of security group IDs. A security group must be attached to the same VPC as the subnets. For more information, see Security in your VPC on Amazon MWAA.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesNetworkConfiguration_SecurityGroupIds
-PassThru <SwitchParameter>
Changes the cmdlet behavior to return the value passed to the Name parameter. The -PassThru parameter is deprecated, use -Select '^Name' instead. This parameter will be removed in a future version.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PluginsS3ObjectVersion <String>
The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a plugins.zip file is updated. For more information, see How S3 Versioning works.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PluginsS3Path <String>
The relative path to the plugins.zip file on your Amazon S3 bucket. For example, plugins.zip. If specified, then the plugins.zip version is required. For more information, see Installing custom plugins.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-RequirementsS3ObjectVersion <String>
The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a requirements.txt file is updated. For more information, see How S3 Versioning works.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-RequirementsS3Path <String>
The relative path to the requirements.txt file on your Amazon S3 bucket. For example, requirements.txt. If specified, then a file version is required. For more information, see Installing Python dependencies.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Scheduler <Int32>
The number of Apache Airflow schedulers to run in your Amazon MWAA environment.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSchedulers
-SchedulerLogs_Enabled <Boolean>
Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_SchedulerLogs_Enabled
-SchedulerLogs_LogLevel <LoggingLevel>
Defines the Apache Airflow log level (e.g. INFO) to send to CloudWatch Logs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_SchedulerLogs_LogLevel
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is 'Arn'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.MWAA.Model.UpdateEnvironmentResponse). Specifying the name of a property of type Amazon.MWAA.Model.UpdateEnvironmentResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SourceBucketArn <String>
The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, arn:aws:s3:::my-airflow-bucket-unique-name. For more information, see Create an Amazon S3 bucket for Amazon MWAA.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-StartupScriptS3ObjectVersion <String>
The version of the startup shell script in your Amazon S3 bucket. You must specify the version ID that Amazon S3 assigns to the file every time you update the script. Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo For more information, see Using a startup script.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-StartupScriptS3Path <String>
The relative path to the startup shell script in your Amazon S3 bucket. For example, s3://mwaa-environment/startup.sh. Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see Using a startup script.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-TaskLogs_Enabled <Boolean>
Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_TaskLogs_Enabled
-TaskLogs_LogLevel <LoggingLevel>
Defines the Apache Airflow log level (e.g. INFO) to send to CloudWatch Logs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_TaskLogs_LogLevel
-WebserverAccessMode <WebserverAccessMode>
The Apache Airflow Web server access mode. For more information, see Apache Airflow access modes.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-WebserverLogs_Enabled <Boolean>
Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_WebserverLogs_Enabled
-WebserverLogs_LogLevel <LoggingLevel>
Defines the Apache Airflow log level (e.g. INFO) to send to CloudWatch Logs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_WebserverLogs_LogLevel
-WeeklyMaintenanceWindowStart <String>
The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: DAY:HH:MM. For example: TUE:03:30. You can specify a start time in 30 minute increments only.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-WorkerLogs_Enabled <Boolean>
Indicates whether to enable the Apache Airflow log type (e.g. DagProcessingLogs).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_WorkerLogs_Enabled
-WorkerLogs_LogLevel <LoggingLevel>
Defines the Apache Airflow log level (e.g. INFO) to send to CloudWatch Logs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesLoggingConfiguration_WorkerLogs_LogLevel

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns a System.String object. The service call response (type Amazon.MWAA.Model.UpdateEnvironmentResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack.

Supported Version

AWS Tools for PowerShell: 2.x.y.z