published on Thursday, Oct 15, 2026 by Pulumi
published on Thursday, Oct 15, 2026 by Pulumi
Creates a MWAA Environment resource.
Example Usage
A MWAA Environment requires an IAM role (aws.iam.Role), two subnets in the private zone (aws.ec2.Subnet) and a versioned S3 bucket (aws.s3.Bucket).
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.mwaa.Environment("example", {
networkConfiguration: {
securityGroupIds: [exampleAwsSecurityGroup.id],
subnetIds: _private.map(__item => __item.id),
},
dagS3Path: "dags/",
executionRoleArn: exampleAwsIamRole.arn,
name: "example",
sourceBucketArn: exampleAwsS3Bucket.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.mwaa.Environment("example",
network_configuration={
"security_group_ids": [example_aws_security_group["id"]],
"subnet_ids": [__item["id"] for __item in private],
},
dag_s3_path="dags/",
execution_role_arn=example_aws_iam_role["arn"],
name="example",
source_bucket_arn=example_aws_s3_bucket["arn"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/mwaa"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mwaa.NewEnvironment(ctx, "example", &mwaa.EnvironmentArgs{
NetworkConfiguration: &mwaa.EnvironmentNetworkConfigurationArgs{
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
SubnetIds: pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:3,24-37)),
},
DagS3Path: pulumi.String("dags/"),
ExecutionRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
Name: pulumi.String("example"),
SourceBucketArn: pulumi.Any(exampleAwsS3Bucket.Arn),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Mwaa.Environment("example", new()
{
NetworkConfiguration = new Aws.Mwaa.Inputs.EnvironmentNetworkConfigurationArgs
{
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
SubnetIds = @private.Select(__item => __item.Id).ToList(),
},
DagS3Path = "dags/",
ExecutionRoleArn = exampleAwsIamRole.Arn,
Name = "example",
SourceBucketArn = exampleAwsS3Bucket.Arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mwaa.Environment;
import com.pulumi.aws.mwaa.EnvironmentArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentNetworkConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Environment("example", EnvironmentArgs.builder()
.networkConfiguration(EnvironmentNetworkConfigurationArgs.builder()
.securityGroupIds(exampleAwsSecurityGroup.id())
.subnetIds(private_.stream().map(element -> element.id()).collect(toList()))
.build())
.dagS3Path("dags/")
.executionRoleArn(exampleAwsIamRole.arn())
.name("example")
.sourceBucketArn(exampleAwsS3Bucket.arn())
.build());
}
}
Example coming soon!
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_mwaa_environment" "example" {
network_configuration = {
security_group_ids = [exampleAwsSecurityGroup.id]
subnet_ids = private[*].id
}
dag_s3_path = "dags/"
execution_role_arn = exampleAwsIamRole.arn
name = "example"
source_bucket_arn = exampleAwsS3Bucket.arn
}
Example with Airflow configuration options
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.mwaa.Environment("example", {
networkConfiguration: {
securityGroupIds: [exampleAwsSecurityGroup.id],
subnetIds: _private.map(__item => __item.id),
},
airflowConfigurationOptions: {
"core.default_task_retries": "16",
"core.parallelism": "1",
},
dagS3Path: "dags/",
executionRoleArn: exampleAwsIamRole.arn,
name: "example",
sourceBucketArn: exampleAwsS3Bucket.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.mwaa.Environment("example",
network_configuration={
"security_group_ids": [example_aws_security_group["id"]],
"subnet_ids": [__item["id"] for __item in private],
},
airflow_configuration_options={
"core.default_task_retries": "16",
"core.parallelism": "1",
},
dag_s3_path="dags/",
execution_role_arn=example_aws_iam_role["arn"],
name="example",
source_bucket_arn=example_aws_s3_bucket["arn"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/mwaa"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mwaa.NewEnvironment(ctx, "example", &mwaa.EnvironmentArgs{
NetworkConfiguration: &mwaa.EnvironmentNetworkConfigurationArgs{
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
SubnetIds: pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:3,24-37)),
},
AirflowConfigurationOptions: pulumi.StringMap{
"core.default_task_retries": pulumi.String("16"),
"core.parallelism": pulumi.String("1"),
},
DagS3Path: pulumi.String("dags/"),
ExecutionRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
Name: pulumi.String("example"),
SourceBucketArn: pulumi.Any(exampleAwsS3Bucket.Arn),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Mwaa.Environment("example", new()
{
NetworkConfiguration = new Aws.Mwaa.Inputs.EnvironmentNetworkConfigurationArgs
{
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
SubnetIds = @private.Select(__item => __item.Id).ToList(),
},
AirflowConfigurationOptions =
{
{ "core.default_task_retries", "16" },
{ "core.parallelism", "1" },
},
DagS3Path = "dags/",
ExecutionRoleArn = exampleAwsIamRole.Arn,
Name = "example",
SourceBucketArn = exampleAwsS3Bucket.Arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mwaa.Environment;
import com.pulumi.aws.mwaa.EnvironmentArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentNetworkConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Environment("example", EnvironmentArgs.builder()
.networkConfiguration(EnvironmentNetworkConfigurationArgs.builder()
.securityGroupIds(exampleAwsSecurityGroup.id())
.subnetIds(private_.stream().map(element -> element.id()).collect(toList()))
.build())
.airflowConfigurationOptions(Map.ofEntries(
Map.entry("core.default_task_retries", "16"),
Map.entry("core.parallelism", "1")
))
.dagS3Path("dags/")
.executionRoleArn(exampleAwsIamRole.arn())
.name("example")
.sourceBucketArn(exampleAwsS3Bucket.arn())
.build());
}
}
Example coming soon!
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_mwaa_environment" "example" {
network_configuration = {
security_group_ids = [exampleAwsSecurityGroup.id]
subnet_ids = private[*].id
}
airflow_configuration_options = {
"core.default_task_retries" = 16
"core.parallelism" = 1
}
dag_s3_path = "dags/"
execution_role_arn = exampleAwsIamRole.arn
name = "example"
source_bucket_arn = exampleAwsS3Bucket.arn
}
Example with logging configurations
Note that Airflow task logs are enabled by default with the INFO log level.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.mwaa.Environment("example", {
loggingConfiguration: {
dagProcessingLogs: {
enabled: true,
logLevel: "DEBUG",
},
schedulerLogs: {
enabled: true,
logLevel: "INFO",
},
taskLogs: {
enabled: true,
logLevel: "WARNING",
},
webserverLogs: {
enabled: true,
logLevel: "ERROR",
},
workerLogs: {
enabled: true,
logLevel: "CRITICAL",
},
},
networkConfiguration: {
securityGroupIds: [exampleAwsSecurityGroup.id],
subnetIds: _private.map(__item => __item.id),
},
dagS3Path: "dags/",
executionRoleArn: exampleAwsIamRole.arn,
name: "example",
sourceBucketArn: exampleAwsS3Bucket.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.mwaa.Environment("example",
logging_configuration={
"dag_processing_logs": {
"enabled": True,
"log_level": "DEBUG",
},
"scheduler_logs": {
"enabled": True,
"log_level": "INFO",
},
"task_logs": {
"enabled": True,
"log_level": "WARNING",
},
"webserver_logs": {
"enabled": True,
"log_level": "ERROR",
},
"worker_logs": {
"enabled": True,
"log_level": "CRITICAL",
},
},
network_configuration={
"security_group_ids": [example_aws_security_group["id"]],
"subnet_ids": [__item["id"] for __item in private],
},
dag_s3_path="dags/",
execution_role_arn=example_aws_iam_role["arn"],
name="example",
source_bucket_arn=example_aws_s3_bucket["arn"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/mwaa"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mwaa.NewEnvironment(ctx, "example", &mwaa.EnvironmentArgs{
LoggingConfiguration: &mwaa.EnvironmentLoggingConfigurationArgs{
DagProcessingLogs: &mwaa.EnvironmentLoggingConfigurationDagProcessingLogsArgs{
Enabled: pulumi.Bool(true),
LogLevel: pulumi.String("DEBUG"),
},
SchedulerLogs: &mwaa.EnvironmentLoggingConfigurationSchedulerLogsArgs{
Enabled: pulumi.Bool(true),
LogLevel: pulumi.String("INFO"),
},
TaskLogs: &mwaa.EnvironmentLoggingConfigurationTaskLogsArgs{
Enabled: pulumi.Bool(true),
LogLevel: pulumi.String("WARNING"),
},
WebserverLogs: &mwaa.EnvironmentLoggingConfigurationWebserverLogsArgs{
Enabled: pulumi.Bool(true),
LogLevel: pulumi.String("ERROR"),
},
WorkerLogs: &mwaa.EnvironmentLoggingConfigurationWorkerLogsArgs{
Enabled: pulumi.Bool(true),
LogLevel: pulumi.String("CRITICAL"),
},
},
NetworkConfiguration: &mwaa.EnvironmentNetworkConfigurationArgs{
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
SubnetIds: pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:25,24-37)),
},
DagS3Path: pulumi.String("dags/"),
ExecutionRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
Name: pulumi.String("example"),
SourceBucketArn: pulumi.Any(exampleAwsS3Bucket.Arn),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Mwaa.Environment("example", new()
{
LoggingConfiguration = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationArgs
{
DagProcessingLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationDagProcessingLogsArgs
{
Enabled = true,
LogLevel = "DEBUG",
},
SchedulerLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationSchedulerLogsArgs
{
Enabled = true,
LogLevel = "INFO",
},
TaskLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationTaskLogsArgs
{
Enabled = true,
LogLevel = "WARNING",
},
WebserverLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationWebserverLogsArgs
{
Enabled = true,
LogLevel = "ERROR",
},
WorkerLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationWorkerLogsArgs
{
Enabled = true,
LogLevel = "CRITICAL",
},
},
NetworkConfiguration = new Aws.Mwaa.Inputs.EnvironmentNetworkConfigurationArgs
{
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
SubnetIds = @private.Select(__item => __item.Id).ToList(),
},
DagS3Path = "dags/",
ExecutionRoleArn = exampleAwsIamRole.Arn,
Name = "example",
SourceBucketArn = exampleAwsS3Bucket.Arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mwaa.Environment;
import com.pulumi.aws.mwaa.EnvironmentArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentLoggingConfigurationArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentLoggingConfigurationDagProcessingLogsArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentLoggingConfigurationSchedulerLogsArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentLoggingConfigurationTaskLogsArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentLoggingConfigurationWebserverLogsArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentLoggingConfigurationWorkerLogsArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentNetworkConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Environment("example", EnvironmentArgs.builder()
.loggingConfiguration(EnvironmentLoggingConfigurationArgs.builder()
.dagProcessingLogs(EnvironmentLoggingConfigurationDagProcessingLogsArgs.builder()
.enabled(true)
.logLevel("DEBUG")
.build())
.schedulerLogs(EnvironmentLoggingConfigurationSchedulerLogsArgs.builder()
.enabled(true)
.logLevel("INFO")
.build())
.taskLogs(EnvironmentLoggingConfigurationTaskLogsArgs.builder()
.enabled(true)
.logLevel("WARNING")
.build())
.webserverLogs(EnvironmentLoggingConfigurationWebserverLogsArgs.builder()
.enabled(true)
.logLevel("ERROR")
.build())
.workerLogs(EnvironmentLoggingConfigurationWorkerLogsArgs.builder()
.enabled(true)
.logLevel("CRITICAL")
.build())
.build())
.networkConfiguration(EnvironmentNetworkConfigurationArgs.builder()
.securityGroupIds(exampleAwsSecurityGroup.id())
.subnetIds(private_.stream().map(element -> element.id()).collect(toList()))
.build())
.dagS3Path("dags/")
.executionRoleArn(exampleAwsIamRole.arn())
.name("example")
.sourceBucketArn(exampleAwsS3Bucket.arn())
.build());
}
}
Example coming soon!
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_mwaa_environment" "example" {
logging_configuration = {
dag_processing_logs = {
enabled = true
log_level = "DEBUG"
}
scheduler_logs = {
enabled = true
log_level = "INFO"
}
task_logs = {
enabled = true
log_level = "WARNING"
}
webserver_logs = {
enabled = true
log_level = "ERROR"
}
worker_logs = {
enabled = true
log_level = "CRITICAL"
}
}
network_configuration = {
security_group_ids = [exampleAwsSecurityGroup.id]
subnet_ids = private[*].id
}
dag_s3_path = "dags/"
execution_role_arn = exampleAwsIamRole.arn
name = "example"
source_bucket_arn = exampleAwsS3Bucket.arn
}
Example with tags
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.mwaa.Environment("example", {
networkConfiguration: {
securityGroupIds: [exampleAwsSecurityGroup.id],
subnetIds: _private.map(__item => __item.id),
},
dagS3Path: "dags/",
executionRoleArn: exampleAwsIamRole.arn,
name: "example",
sourceBucketArn: exampleAwsS3Bucket.arn,
tags: {
Name: "example",
Environment: "production",
},
});
import pulumi
import pulumi_aws as aws
example = aws.mwaa.Environment("example",
network_configuration={
"security_group_ids": [example_aws_security_group["id"]],
"subnet_ids": [__item["id"] for __item in private],
},
dag_s3_path="dags/",
execution_role_arn=example_aws_iam_role["arn"],
name="example",
source_bucket_arn=example_aws_s3_bucket["arn"],
tags={
"Name": "example",
"Environment": "production",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/mwaa"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mwaa.NewEnvironment(ctx, "example", &mwaa.EnvironmentArgs{
NetworkConfiguration: &mwaa.EnvironmentNetworkConfigurationArgs{
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
SubnetIds: pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:3,24-37)),
},
DagS3Path: pulumi.String("dags/"),
ExecutionRoleArn: pulumi.Any(exampleAwsIamRole.Arn),
Name: pulumi.String("example"),
SourceBucketArn: pulumi.Any(exampleAwsS3Bucket.Arn),
Tags: pulumi.StringMap{
"Name": pulumi.String("example"),
"Environment": pulumi.String("production"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Mwaa.Environment("example", new()
{
NetworkConfiguration = new Aws.Mwaa.Inputs.EnvironmentNetworkConfigurationArgs
{
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
SubnetIds = @private.Select(__item => __item.Id).ToList(),
},
DagS3Path = "dags/",
ExecutionRoleArn = exampleAwsIamRole.Arn,
Name = "example",
SourceBucketArn = exampleAwsS3Bucket.Arn,
Tags =
{
{ "Name", "example" },
{ "Environment", "production" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mwaa.Environment;
import com.pulumi.aws.mwaa.EnvironmentArgs;
import com.pulumi.aws.mwaa.inputs.EnvironmentNetworkConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Environment("example", EnvironmentArgs.builder()
.networkConfiguration(EnvironmentNetworkConfigurationArgs.builder()
.securityGroupIds(exampleAwsSecurityGroup.id())
.subnetIds(private_.stream().map(element -> element.id()).collect(toList()))
.build())
.dagS3Path("dags/")
.executionRoleArn(exampleAwsIamRole.arn())
.name("example")
.sourceBucketArn(exampleAwsS3Bucket.arn())
.tags(Map.ofEntries(
Map.entry("Name", "example"),
Map.entry("Environment", "production")
))
.build());
}
}
Example coming soon!
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_mwaa_environment" "example" {
network_configuration = {
security_group_ids = [exampleAwsSecurityGroup.id]
subnet_ids = private[*].id
}
dag_s3_path = "dags/"
execution_role_arn = exampleAwsIamRole.arn
name = "example"
source_bucket_arn = exampleAwsS3Bucket.arn
tags = {
"Name" = "example"
"Environment" = "production"
}
}
Create Environment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);@overload
def Environment(resource_name: str,
args: EnvironmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Environment(resource_name: str,
opts: Optional[ResourceOptions] = None,
execution_role_arn: Optional[str] = None,
source_bucket_arn: Optional[str] = None,
dag_s3_path: Optional[str] = None,
network_configuration: Optional[EnvironmentNetworkConfigurationArgs] = None,
name: Optional[str] = None,
plugins_s3_path: Optional[str] = None,
kms_key: Optional[str] = None,
logging_configuration: Optional[EnvironmentLoggingConfigurationArgs] = None,
max_webservers: Optional[int] = None,
max_workers: Optional[int] = None,
min_webservers: Optional[int] = None,
min_workers: Optional[int] = None,
airflow_configuration_options: Optional[Mapping[str, str]] = None,
endpoint_management: Optional[str] = None,
plugins_s3_object_version: Optional[str] = None,
environment_class: Optional[str] = None,
region: Optional[str] = None,
requirements_s3_object_version: Optional[str] = None,
requirements_s3_path: Optional[str] = None,
schedulers: Optional[int] = None,
airflow_version: Optional[str] = None,
startup_script_s3_object_version: Optional[str] = None,
startup_script_s3_path: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
webserver_access_mode: Optional[str] = None,
weekly_maintenance_window_start: Optional[str] = None,
worker_replacement_strategy: Optional[str] = None)func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
public Environment(String name, EnvironmentArgs args)
public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
type: aws:mwaa:Environment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_mwaa_environment" "name" {
# resource properties
}Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleenvironmentResourceResourceFromMwaaenvironment = new Aws.Mwaa.Environment("exampleenvironmentResourceResourceFromMwaaenvironment", new()
{
ExecutionRoleArn = "string",
SourceBucketArn = "string",
DagS3Path = "string",
NetworkConfiguration = new Aws.Mwaa.Inputs.EnvironmentNetworkConfigurationArgs
{
SecurityGroupIds = new[]
{
"string",
},
SubnetIds = new[]
{
"string",
},
},
Name = "string",
PluginsS3Path = "string",
KmsKey = "string",
LoggingConfiguration = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationArgs
{
DagProcessingLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationDagProcessingLogsArgs
{
CloudWatchLogGroupArn = "string",
Enabled = false,
LogLevel = "string",
},
SchedulerLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationSchedulerLogsArgs
{
CloudWatchLogGroupArn = "string",
Enabled = false,
LogLevel = "string",
},
TaskLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationTaskLogsArgs
{
CloudWatchLogGroupArn = "string",
Enabled = false,
LogLevel = "string",
},
WebserverLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationWebserverLogsArgs
{
CloudWatchLogGroupArn = "string",
Enabled = false,
LogLevel = "string",
},
WorkerLogs = new Aws.Mwaa.Inputs.EnvironmentLoggingConfigurationWorkerLogsArgs
{
CloudWatchLogGroupArn = "string",
Enabled = false,
LogLevel = "string",
},
},
MaxWebservers = 0,
MaxWorkers = 0,
MinWebservers = 0,
MinWorkers = 0,
AirflowConfigurationOptions =
{
{ "string", "string" },
},
EndpointManagement = "string",
PluginsS3ObjectVersion = "string",
EnvironmentClass = "string",
Region = "string",
RequirementsS3ObjectVersion = "string",
RequirementsS3Path = "string",
Schedulers = 0,
AirflowVersion = "string",
StartupScriptS3ObjectVersion = "string",
StartupScriptS3Path = "string",
Tags =
{
{ "string", "string" },
},
WebserverAccessMode = "string",
WeeklyMaintenanceWindowStart = "string",
WorkerReplacementStrategy = "string",
});
example, err := mwaa.NewEnvironment(ctx, "exampleenvironmentResourceResourceFromMwaaenvironment", &mwaa.EnvironmentArgs{
ExecutionRoleArn: pulumi.String("string"),
SourceBucketArn: pulumi.String("string"),
DagS3Path: pulumi.String("string"),
NetworkConfiguration: &mwaa.EnvironmentNetworkConfigurationArgs{
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
},
Name: pulumi.String("string"),
PluginsS3Path: pulumi.String("string"),
KmsKey: pulumi.String("string"),
LoggingConfiguration: &mwaa.EnvironmentLoggingConfigurationArgs{
DagProcessingLogs: &mwaa.EnvironmentLoggingConfigurationDagProcessingLogsArgs{
CloudWatchLogGroupArn: pulumi.String("string"),
Enabled: pulumi.Bool(false),
LogLevel: pulumi.String("string"),
},
SchedulerLogs: &mwaa.EnvironmentLoggingConfigurationSchedulerLogsArgs{
CloudWatchLogGroupArn: pulumi.String("string"),
Enabled: pulumi.Bool(false),
LogLevel: pulumi.String("string"),
},
TaskLogs: &mwaa.EnvironmentLoggingConfigurationTaskLogsArgs{
CloudWatchLogGroupArn: pulumi.String("string"),
Enabled: pulumi.Bool(false),
LogLevel: pulumi.String("string"),
},
WebserverLogs: &mwaa.EnvironmentLoggingConfigurationWebserverLogsArgs{
CloudWatchLogGroupArn: pulumi.String("string"),
Enabled: pulumi.Bool(false),
LogLevel: pulumi.String("string"),
},
WorkerLogs: &mwaa.EnvironmentLoggingConfigurationWorkerLogsArgs{
CloudWatchLogGroupArn: pulumi.String("string"),
Enabled: pulumi.Bool(false),
LogLevel: pulumi.String("string"),
},
},
MaxWebservers: pulumi.Int(0),
MaxWorkers: pulumi.Int(0),
MinWebservers: pulumi.Int(0),
MinWorkers: pulumi.Int(0),
AirflowConfigurationOptions: pulumi.StringMap{
"string": pulumi.String("string"),
},
EndpointManagement: pulumi.String("string"),
PluginsS3ObjectVersion: pulumi.String("string"),
EnvironmentClass: pulumi.String("string"),
Region: pulumi.String("string"),
RequirementsS3ObjectVersion: pulumi.String("string"),
RequirementsS3Path: pulumi.String("string"),
Schedulers: pulumi.Int(0),
AirflowVersion: pulumi.String("string"),
StartupScriptS3ObjectVersion: pulumi.String("string"),
StartupScriptS3Path: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
WebserverAccessMode: pulumi.String("string"),
WeeklyMaintenanceWindowStart: pulumi.String("string"),
WorkerReplacementStrategy: pulumi.String("string"),
})
resource "aws_mwaa_environment" "exampleenvironmentResourceResourceFromMwaaenvironment" {
lifecycle {
create_before_destroy = true
}
execution_role_arn = "string"
source_bucket_arn = "string"
dag_s3_path = "string"
network_configuration = {
security_group_ids = ["string"]
subnet_ids = ["string"]
}
name = "string"
plugins_s3_path = "string"
kms_key = "string"
logging_configuration = {
dag_processing_logs = {
cloud_watch_log_group_arn = "string"
enabled = false
log_level = "string"
}
scheduler_logs = {
cloud_watch_log_group_arn = "string"
enabled = false
log_level = "string"
}
task_logs = {
cloud_watch_log_group_arn = "string"
enabled = false
log_level = "string"
}
webserver_logs = {
cloud_watch_log_group_arn = "string"
enabled = false
log_level = "string"
}
worker_logs = {
cloud_watch_log_group_arn = "string"
enabled = false
log_level = "string"
}
}
max_webservers = 0
max_workers = 0
min_webservers = 0
min_workers = 0
airflow_configuration_options = {
"string" = "string"
}
endpoint_management = "string"
plugins_s3_object_version = "string"
environment_class = "string"
region = "string"
requirements_s3_object_version = "string"
requirements_s3_path = "string"
schedulers = 0
airflow_version = "string"
startup_script_s3_object_version = "string"
startup_script_s3_path = "string"
tags = {
"string" = "string"
}
webserver_access_mode = "string"
weekly_maintenance_window_start = "string"
worker_replacement_strategy = "string"
}
var exampleenvironmentResourceResourceFromMwaaenvironment = new com.pulumi.aws.mwaa.Environment("exampleenvironmentResourceResourceFromMwaaenvironment", com.pulumi.aws.mwaa.EnvironmentArgs.builder()
.executionRoleArn("string")
.sourceBucketArn("string")
.dagS3Path("string")
.networkConfiguration(EnvironmentNetworkConfigurationArgs.builder()
.securityGroupIds("string")
.subnetIds("string")
.build())
.name("string")
.pluginsS3Path("string")
.kmsKey("string")
.loggingConfiguration(EnvironmentLoggingConfigurationArgs.builder()
.dagProcessingLogs(EnvironmentLoggingConfigurationDagProcessingLogsArgs.builder()
.cloudWatchLogGroupArn("string")
.enabled(false)
.logLevel("string")
.build())
.schedulerLogs(EnvironmentLoggingConfigurationSchedulerLogsArgs.builder()
.cloudWatchLogGroupArn("string")
.enabled(false)
.logLevel("string")
.build())
.taskLogs(EnvironmentLoggingConfigurationTaskLogsArgs.builder()
.cloudWatchLogGroupArn("string")
.enabled(false)
.logLevel("string")
.build())
.webserverLogs(EnvironmentLoggingConfigurationWebserverLogsArgs.builder()
.cloudWatchLogGroupArn("string")
.enabled(false)
.logLevel("string")
.build())
.workerLogs(EnvironmentLoggingConfigurationWorkerLogsArgs.builder()
.cloudWatchLogGroupArn("string")
.enabled(false)
.logLevel("string")
.build())
.build())
.maxWebservers(0)
.maxWorkers(0)
.minWebservers(0)
.minWorkers(0)
.airflowConfigurationOptions(Map.of("string", "string"))
.endpointManagement("string")
.pluginsS3ObjectVersion("string")
.environmentClass("string")
.region("string")
.requirementsS3ObjectVersion("string")
.requirementsS3Path("string")
.schedulers(0)
.airflowVersion("string")
.startupScriptS3ObjectVersion("string")
.startupScriptS3Path("string")
.tags(Map.of("string", "string"))
.webserverAccessMode("string")
.weeklyMaintenanceWindowStart("string")
.workerReplacementStrategy("string")
.build());
exampleenvironment_resource_resource_from_mwaaenvironment = aws.mwaa.Environment("exampleenvironmentResourceResourceFromMwaaenvironment",
execution_role_arn="string",
source_bucket_arn="string",
dag_s3_path="string",
network_configuration={
"security_group_ids": ["string"],
"subnet_ids": ["string"],
},
name="string",
plugins_s3_path="string",
kms_key="string",
logging_configuration={
"dag_processing_logs": {
"cloud_watch_log_group_arn": "string",
"enabled": False,
"log_level": "string",
},
"scheduler_logs": {
"cloud_watch_log_group_arn": "string",
"enabled": False,
"log_level": "string",
},
"task_logs": {
"cloud_watch_log_group_arn": "string",
"enabled": False,
"log_level": "string",
},
"webserver_logs": {
"cloud_watch_log_group_arn": "string",
"enabled": False,
"log_level": "string",
},
"worker_logs": {
"cloud_watch_log_group_arn": "string",
"enabled": False,
"log_level": "string",
},
},
max_webservers=0,
max_workers=0,
min_webservers=0,
min_workers=0,
airflow_configuration_options={
"string": "string",
},
endpoint_management="string",
plugins_s3_object_version="string",
environment_class="string",
region="string",
requirements_s3_object_version="string",
requirements_s3_path="string",
schedulers=0,
airflow_version="string",
startup_script_s3_object_version="string",
startup_script_s3_path="string",
tags={
"string": "string",
},
webserver_access_mode="string",
weekly_maintenance_window_start="string",
worker_replacement_strategy="string")
const exampleenvironmentResourceResourceFromMwaaenvironment = new aws.mwaa.Environment("exampleenvironmentResourceResourceFromMwaaenvironment", {
executionRoleArn: "string",
sourceBucketArn: "string",
dagS3Path: "string",
networkConfiguration: {
securityGroupIds: ["string"],
subnetIds: ["string"],
},
name: "string",
pluginsS3Path: "string",
kmsKey: "string",
loggingConfiguration: {
dagProcessingLogs: {
cloudWatchLogGroupArn: "string",
enabled: false,
logLevel: "string",
},
schedulerLogs: {
cloudWatchLogGroupArn: "string",
enabled: false,
logLevel: "string",
},
taskLogs: {
cloudWatchLogGroupArn: "string",
enabled: false,
logLevel: "string",
},
webserverLogs: {
cloudWatchLogGroupArn: "string",
enabled: false,
logLevel: "string",
},
workerLogs: {
cloudWatchLogGroupArn: "string",
enabled: false,
logLevel: "string",
},
},
maxWebservers: 0,
maxWorkers: 0,
minWebservers: 0,
minWorkers: 0,
airflowConfigurationOptions: {
string: "string",
},
endpointManagement: "string",
pluginsS3ObjectVersion: "string",
environmentClass: "string",
region: "string",
requirementsS3ObjectVersion: "string",
requirementsS3Path: "string",
schedulers: 0,
airflowVersion: "string",
startupScriptS3ObjectVersion: "string",
startupScriptS3Path: "string",
tags: {
string: "string",
},
webserverAccessMode: "string",
weeklyMaintenanceWindowStart: "string",
workerReplacementStrategy: "string",
});
type: aws:mwaa:Environment
properties:
airflowConfigurationOptions:
string: string
airflowVersion: string
dagS3Path: string
endpointManagement: string
environmentClass: string
executionRoleArn: string
kmsKey: string
loggingConfiguration:
dagProcessingLogs:
cloudWatchLogGroupArn: string
enabled: false
logLevel: string
schedulerLogs:
cloudWatchLogGroupArn: string
enabled: false
logLevel: string
taskLogs:
cloudWatchLogGroupArn: string
enabled: false
logLevel: string
webserverLogs:
cloudWatchLogGroupArn: string
enabled: false
logLevel: string
workerLogs:
cloudWatchLogGroupArn: string
enabled: false
logLevel: string
maxWebservers: 0
maxWorkers: 0
minWebservers: 0
minWorkers: 0
name: string
networkConfiguration:
securityGroupIds:
- string
subnetIds:
- string
pluginsS3ObjectVersion: string
pluginsS3Path: string
region: string
requirementsS3ObjectVersion: string
requirementsS3Path: string
schedulers: 0
sourceBucketArn: string
startupScriptS3ObjectVersion: string
startupScriptS3Path: string
tags:
string: string
webserverAccessMode: string
weeklyMaintenanceWindowStart: string
workerReplacementStrategy: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Environment resource accepts the following input properties:
- Dag
S3Path string - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- Execution
Role stringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- Network
Configuration EnvironmentNetwork Configuration - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - Source
Bucket stringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- Airflow
Configuration Dictionary<string, string>Options - Airflow override options. Check the Official documentation for all possible configuration options.
- Airflow
Version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- Endpoint
Management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - Environment
Class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - Kms
Key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - Logging
Configuration EnvironmentLogging Configuration - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - Max
Webservers int - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Max
Workers int - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - Min
Webservers int - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Min
Workers int - Minimum number of workers that you want to run in your environment. Will be
1by default. - Name string
- Name of the Apache Airflow Environment.
- Plugins
S3Object stringVersion - Version of the plugins.zip file you want to use.
- Plugins
S3Path string - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Requirements
S3Object stringVersion - Version of the requirements.txt file you want to use.
- Requirements
S3Path string - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Schedulers int
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - Startup
Script stringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- Startup
Script stringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- Dictionary<string, string>
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Webserver
Access stringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - Weekly
Maintenance stringWindow Start - Start date for the weekly maintenance window.
- Worker
Replacement stringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- Dag
S3Path string - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- Execution
Role stringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- Network
Configuration EnvironmentNetwork Configuration Args - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - Source
Bucket stringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- Airflow
Configuration map[string]stringOptions - Airflow override options. Check the Official documentation for all possible configuration options.
- Airflow
Version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- Endpoint
Management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - Environment
Class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - Kms
Key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - Logging
Configuration EnvironmentLogging Configuration Args - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - Max
Webservers int - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Max
Workers int - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - Min
Webservers int - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Min
Workers int - Minimum number of workers that you want to run in your environment. Will be
1by default. - Name string
- Name of the Apache Airflow Environment.
- Plugins
S3Object stringVersion - Version of the plugins.zip file you want to use.
- Plugins
S3Path string - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Requirements
S3Object stringVersion - Version of the requirements.txt file you want to use.
- Requirements
S3Path string - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Schedulers int
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - Startup
Script stringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- Startup
Script stringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- map[string]string
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Webserver
Access stringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - Weekly
Maintenance stringWindow Start - Start date for the weekly maintenance window.
- Worker
Replacement stringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- dag_
s3_ stringpath - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- execution_
role_ stringarn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- network_
configuration object - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - source_
bucket_ stringarn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- airflow_
configuration_ map(string)options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow_
version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- endpoint_
management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment_
class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - kms_
key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - logging_
configuration object - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max_
webservers number - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max_
workers number - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min_
webservers number - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min_
workers number - Minimum number of workers that you want to run in your environment. Will be
1by default. - name string
- Name of the Apache Airflow Environment.
- plugins_
s3_ stringobject_ version - Version of the plugins.zip file you want to use.
- plugins_
s3_ stringpath - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements_
s3_ stringobject_ version - Version of the requirements.txt file you want to use.
- requirements_
s3_ stringpath - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers number
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - startup_
script_ strings3_ object_ version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup_
script_ strings3_ path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- map(string)
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - webserver_
access_ stringmode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - weekly_
maintenance_ stringwindow_ start - Start date for the weekly maintenance window.
- worker_
replacement_ stringstrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- dag
S3Path String - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- execution
Role StringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- network
Configuration EnvironmentNetwork Configuration - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - source
Bucket StringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- airflow
Configuration Map<String,String>Options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow
Version String - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- endpoint
Management String - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment
Class String - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - kms
Key String - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - logging
Configuration EnvironmentLogging Configuration - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max
Webservers Integer - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max
Workers Integer - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min
Webservers Integer - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min
Workers Integer - Minimum number of workers that you want to run in your environment. Will be
1by default. - name String
- Name of the Apache Airflow Environment.
- plugins
S3Object StringVersion - Version of the plugins.zip file you want to use.
- plugins
S3Path String - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements
S3Object StringVersion - Version of the requirements.txt file you want to use.
- requirements
S3Path String - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers Integer
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - startup
Script StringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup
Script StringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- Map<String,String>
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - webserver
Access StringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - weekly
Maintenance StringWindow Start - Start date for the weekly maintenance window.
- worker
Replacement StringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- dag
S3Path string - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- execution
Role stringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- network
Configuration EnvironmentNetwork Configuration - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - source
Bucket stringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- airflow
Configuration {[key: string]: string}Options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow
Version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- endpoint
Management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment
Class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - kms
Key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - logging
Configuration EnvironmentLogging Configuration - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max
Webservers number - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max
Workers number - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min
Webservers number - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min
Workers number - Minimum number of workers that you want to run in your environment. Will be
1by default. - name string
- Name of the Apache Airflow Environment.
- plugins
S3Object stringVersion - Version of the plugins.zip file you want to use.
- plugins
S3Path string - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements
S3Object stringVersion - Version of the requirements.txt file you want to use.
- requirements
S3Path string - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers number
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - startup
Script stringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup
Script stringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- {[key: string]: string}
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - webserver
Access stringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - weekly
Maintenance stringWindow Start - Start date for the weekly maintenance window.
- worker
Replacement stringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- dag_
s3_ strpath - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- execution_
role_ strarn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- network_
configuration EnvironmentNetwork Configuration Args - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - source_
bucket_ strarn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- airflow_
configuration_ Mapping[str, str]options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow_
version str - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- endpoint_
management str - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment_
class str - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - kms_
key str - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - logging_
configuration EnvironmentLogging Configuration Args - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max_
webservers int - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max_
workers int - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min_
webservers int - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min_
workers int - Minimum number of workers that you want to run in your environment. Will be
1by default. - name str
- Name of the Apache Airflow Environment.
- plugins_
s3_ strobject_ version - Version of the plugins.zip file you want to use.
- plugins_
s3_ strpath - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements_
s3_ strobject_ version - Version of the requirements.txt file you want to use.
- requirements_
s3_ strpath - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers int
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - startup_
script_ strs3_ object_ version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup_
script_ strs3_ path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- Mapping[str, str]
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - webserver_
access_ strmode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - weekly_
maintenance_ strwindow_ start - Start date for the weekly maintenance window.
- worker_
replacement_ strstrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- dag
S3Path String - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- execution
Role StringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- network
Configuration Property Map - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - source
Bucket StringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- airflow
Configuration Map<String>Options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow
Version String - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- endpoint
Management String - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment
Class String - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - kms
Key String - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - logging
Configuration Property Map - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max
Webservers Number - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max
Workers Number - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min
Webservers Number - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min
Workers Number - Minimum number of workers that you want to run in your environment. Will be
1by default. - name String
- Name of the Apache Airflow Environment.
- plugins
S3Object StringVersion - Version of the plugins.zip file you want to use.
- plugins
S3Path String - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements
S3Object StringVersion - Version of the requirements.txt file you want to use.
- requirements
S3Path String - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers Number
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - startup
Script StringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup
Script StringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- Map<String>
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - webserver
Access StringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - weekly
Maintenance StringWindow Start - Start date for the weekly maintenance window.
- worker
Replacement StringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
Outputs
All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:
- Arn string
- ARN of the MWAA Environment.
- Created
At string - Date and time the environment was last updated.
- Database
Vpc stringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updateds List<EnvironmentLast Updated> - Information about the last update of the environment. See
lastUpdatedBlock for details. - Service
Role stringArn - Service Role ARN of the Amazon MWAA Environment.
- Status string
- Status of the last update.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Webserver
Url string - Webserver URL of the MWAA Environment.
- Webserver
Vpc stringEndpoint Service - VPC endpoint for the environment's web server.
- Arn string
- ARN of the MWAA Environment.
- Created
At string - Date and time the environment was last updated.
- Database
Vpc stringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updateds []EnvironmentLast Updated - Information about the last update of the environment. See
lastUpdatedBlock for details. - Service
Role stringArn - Service Role ARN of the Amazon MWAA Environment.
- Status string
- Status of the last update.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Webserver
Url string - Webserver URL of the MWAA Environment.
- Webserver
Vpc stringEndpoint Service - VPC endpoint for the environment's web server.
- arn string
- ARN of the MWAA Environment.
- created_
at string - Date and time the environment was last updated.
- database_
vpc_ stringendpoint_ service - VPC endpoint for the environment's Amazon RDS database.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updateds list(object) - Information about the last update of the environment. See
lastUpdatedBlock for details. - service_
role_ stringarn - Service Role ARN of the Amazon MWAA Environment.
- status string
- Status of the last update.
- map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver_
url string - Webserver URL of the MWAA Environment.
- webserver_
vpc_ stringendpoint_ service - VPC endpoint for the environment's web server.
- arn String
- ARN of the MWAA Environment.
- created
At String - Date and time the environment was last updated.
- database
Vpc StringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updateds List<EnvironmentLast Updated> - Information about the last update of the environment. See
lastUpdatedBlock for details. - service
Role StringArn - Service Role ARN of the Amazon MWAA Environment.
- status String
- Status of the last update.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver
Url String - Webserver URL of the MWAA Environment.
- webserver
Vpc StringEndpoint Service - VPC endpoint for the environment's web server.
- arn string
- ARN of the MWAA Environment.
- created
At string - Date and time the environment was last updated.
- database
Vpc stringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updateds EnvironmentLast Updated[] - Information about the last update of the environment. See
lastUpdatedBlock for details. - service
Role stringArn - Service Role ARN of the Amazon MWAA Environment.
- status string
- Status of the last update.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver
Url string - Webserver URL of the MWAA Environment.
- webserver
Vpc stringEndpoint Service - VPC endpoint for the environment's web server.
- arn str
- ARN of the MWAA Environment.
- created_
at str - Date and time the environment was last updated.
- database_
vpc_ strendpoint_ service - VPC endpoint for the environment's Amazon RDS database.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updateds Sequence[EnvironmentLast Updated] - Information about the last update of the environment. See
lastUpdatedBlock for details. - service_
role_ strarn - Service Role ARN of the Amazon MWAA Environment.
- status str
- Status of the last update.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver_
url str - Webserver URL of the MWAA Environment.
- webserver_
vpc_ strendpoint_ service - VPC endpoint for the environment's web server.
- arn String
- ARN of the MWAA Environment.
- created
At String - Date and time the environment was last updated.
- database
Vpc StringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updateds List<Property Map> - Information about the last update of the environment. See
lastUpdatedBlock for details. - service
Role StringArn - Service Role ARN of the Amazon MWAA Environment.
- status String
- Status of the last update.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver
Url String - Webserver URL of the MWAA Environment.
- webserver
Vpc StringEndpoint Service - VPC endpoint for the environment's web server.
Look up Existing Environment Resource
Get an existing Environment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EnvironmentState, opts?: CustomResourceOptions): Environment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
airflow_configuration_options: Optional[Mapping[str, str]] = None,
airflow_version: Optional[str] = None,
arn: Optional[str] = None,
created_at: Optional[str] = None,
dag_s3_path: Optional[str] = None,
database_vpc_endpoint_service: Optional[str] = None,
endpoint_management: Optional[str] = None,
environment_class: Optional[str] = None,
execution_role_arn: Optional[str] = None,
kms_key: Optional[str] = None,
last_updateds: Optional[Sequence[EnvironmentLastUpdatedArgs]] = None,
logging_configuration: Optional[EnvironmentLoggingConfigurationArgs] = None,
max_webservers: Optional[int] = None,
max_workers: Optional[int] = None,
min_webservers: 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,
region: Optional[str] = None,
requirements_s3_object_version: Optional[str] = None,
requirements_s3_path: Optional[str] = None,
schedulers: Optional[int] = None,
service_role_arn: Optional[str] = None,
source_bucket_arn: Optional[str] = None,
startup_script_s3_object_version: Optional[str] = None,
startup_script_s3_path: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
webserver_access_mode: Optional[str] = None,
webserver_url: Optional[str] = None,
webserver_vpc_endpoint_service: Optional[str] = None,
weekly_maintenance_window_start: Optional[str] = None,
worker_replacement_strategy: Optional[str] = None) -> Environmentfunc GetEnvironment(ctx *Context, name string, id IDInput, state *EnvironmentState, opts ...ResourceOption) (*Environment, error)public static Environment Get(string name, Input<string> id, EnvironmentState? state, CustomResourceOptions? opts = null)public static Environment get(String name, Output<String> id, EnvironmentState state, CustomResourceOptions options)resources: _: type: aws:mwaa:Environment get: id: ${id}import {
to = aws_mwaa_environment.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Airflow
Configuration Dictionary<string, string>Options - Airflow override options. Check the Official documentation for all possible configuration options.
- Airflow
Version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- Arn string
- ARN of the MWAA Environment.
- Created
At string - Date and time the environment was last updated.
- Dag
S3Path string - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- Database
Vpc stringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- Endpoint
Management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - Environment
Class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - Execution
Role stringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- Kms
Key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - Last
Updateds List<EnvironmentLast Updated> - Information about the last update of the environment. See
lastUpdatedBlock for details. - Logging
Configuration EnvironmentLogging Configuration - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - Max
Webservers int - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Max
Workers int - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - Min
Webservers int - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Min
Workers int - Minimum number of workers that you want to run in your environment. Will be
1by default. - Name string
- Name of the Apache Airflow Environment.
- Network
Configuration EnvironmentNetwork Configuration - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - Plugins
S3Object stringVersion - Version of the plugins.zip file you want to use.
- Plugins
S3Path string - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Requirements
S3Object stringVersion - Version of the requirements.txt file you want to use.
- Requirements
S3Path string - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Schedulers int
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - Service
Role stringArn - Service Role ARN of the Amazon MWAA Environment.
- Source
Bucket stringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- Startup
Script stringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- Startup
Script stringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- Status string
- Status of the last update.
- Dictionary<string, string>
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Webserver
Access stringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - Webserver
Url string - Webserver URL of the MWAA Environment.
- Webserver
Vpc stringEndpoint Service - VPC endpoint for the environment's web server.
- Weekly
Maintenance stringWindow Start - Start date for the weekly maintenance window.
- Worker
Replacement stringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- Airflow
Configuration map[string]stringOptions - Airflow override options. Check the Official documentation for all possible configuration options.
- Airflow
Version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- Arn string
- ARN of the MWAA Environment.
- Created
At string - Date and time the environment was last updated.
- Dag
S3Path string - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- Database
Vpc stringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- Endpoint
Management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - Environment
Class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - Execution
Role stringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- Kms
Key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - Last
Updateds []EnvironmentLast Updated Args - Information about the last update of the environment. See
lastUpdatedBlock for details. - Logging
Configuration EnvironmentLogging Configuration Args - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - Max
Webservers int - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Max
Workers int - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - Min
Webservers int - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - Min
Workers int - Minimum number of workers that you want to run in your environment. Will be
1by default. - Name string
- Name of the Apache Airflow Environment.
- Network
Configuration EnvironmentNetwork Configuration Args - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - Plugins
S3Object stringVersion - Version of the plugins.zip file you want to use.
- Plugins
S3Path string - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Requirements
S3Object stringVersion - Version of the requirements.txt file you want to use.
- Requirements
S3Path string - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- Schedulers int
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - Service
Role stringArn - Service Role ARN of the Amazon MWAA Environment.
- Source
Bucket stringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- Startup
Script stringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- Startup
Script stringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- Status string
- Status of the last update.
- map[string]string
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - Webserver
Access stringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - Webserver
Url string - Webserver URL of the MWAA Environment.
- Webserver
Vpc stringEndpoint Service - VPC endpoint for the environment's web server.
- Weekly
Maintenance stringWindow Start - Start date for the weekly maintenance window.
- Worker
Replacement stringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- airflow_
configuration_ map(string)options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow_
version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- arn string
- ARN of the MWAA Environment.
- created_
at string - Date and time the environment was last updated.
- dag_
s3_ stringpath - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- database_
vpc_ stringendpoint_ service - VPC endpoint for the environment's Amazon RDS database.
- endpoint_
management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment_
class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - execution_
role_ stringarn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- kms_
key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - last_
updateds list(object) - Information about the last update of the environment. See
lastUpdatedBlock for details. - logging_
configuration object - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max_
webservers number - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max_
workers number - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min_
webservers number - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min_
workers number - Minimum number of workers that you want to run in your environment. Will be
1by default. - name string
- Name of the Apache Airflow Environment.
- network_
configuration object - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - plugins_
s3_ stringobject_ version - Version of the plugins.zip file you want to use.
- plugins_
s3_ stringpath - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements_
s3_ stringobject_ version - Version of the requirements.txt file you want to use.
- requirements_
s3_ stringpath - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers number
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - service_
role_ stringarn - Service Role ARN of the Amazon MWAA Environment.
- source_
bucket_ stringarn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- startup_
script_ strings3_ object_ version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup_
script_ strings3_ path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- status string
- Status of the last update.
- map(string)
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver_
access_ stringmode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - webserver_
url string - Webserver URL of the MWAA Environment.
- webserver_
vpc_ stringendpoint_ service - VPC endpoint for the environment's web server.
- weekly_
maintenance_ stringwindow_ start - Start date for the weekly maintenance window.
- worker_
replacement_ stringstrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- airflow
Configuration Map<String,String>Options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow
Version String - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- arn String
- ARN of the MWAA Environment.
- created
At String - Date and time the environment was last updated.
- dag
S3Path String - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- database
Vpc StringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- endpoint
Management String - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment
Class String - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - execution
Role StringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- kms
Key String - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - last
Updateds List<EnvironmentLast Updated> - Information about the last update of the environment. See
lastUpdatedBlock for details. - logging
Configuration EnvironmentLogging Configuration - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max
Webservers Integer - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max
Workers Integer - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min
Webservers Integer - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min
Workers Integer - Minimum number of workers that you want to run in your environment. Will be
1by default. - name String
- Name of the Apache Airflow Environment.
- network
Configuration EnvironmentNetwork Configuration - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - plugins
S3Object StringVersion - Version of the plugins.zip file you want to use.
- plugins
S3Path String - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements
S3Object StringVersion - Version of the requirements.txt file you want to use.
- requirements
S3Path String - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers Integer
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - service
Role StringArn - Service Role ARN of the Amazon MWAA Environment.
- source
Bucket StringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- startup
Script StringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup
Script StringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- status String
- Status of the last update.
- Map<String,String>
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver
Access StringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - webserver
Url String - Webserver URL of the MWAA Environment.
- webserver
Vpc StringEndpoint Service - VPC endpoint for the environment's web server.
- weekly
Maintenance StringWindow Start - Start date for the weekly maintenance window.
- worker
Replacement StringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- airflow
Configuration {[key: string]: string}Options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow
Version string - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- arn string
- ARN of the MWAA Environment.
- created
At string - Date and time the environment was last updated.
- dag
S3Path string - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- database
Vpc stringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- endpoint
Management string - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment
Class string - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - execution
Role stringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- kms
Key string - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - last
Updateds EnvironmentLast Updated[] - Information about the last update of the environment. See
lastUpdatedBlock for details. - logging
Configuration EnvironmentLogging Configuration - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max
Webservers number - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max
Workers number - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min
Webservers number - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min
Workers number - Minimum number of workers that you want to run in your environment. Will be
1by default. - name string
- Name of the Apache Airflow Environment.
- network
Configuration EnvironmentNetwork Configuration - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - plugins
S3Object stringVersion - Version of the plugins.zip file you want to use.
- plugins
S3Path string - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements
S3Object stringVersion - Version of the requirements.txt file you want to use.
- requirements
S3Path string - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers number
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - service
Role stringArn - Service Role ARN of the Amazon MWAA Environment.
- source
Bucket stringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- startup
Script stringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup
Script stringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- status string
- Status of the last update.
- {[key: string]: string}
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver
Access stringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - webserver
Url string - Webserver URL of the MWAA Environment.
- webserver
Vpc stringEndpoint Service - VPC endpoint for the environment's web server.
- weekly
Maintenance stringWindow Start - Start date for the weekly maintenance window.
- worker
Replacement stringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- airflow_
configuration_ Mapping[str, str]options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow_
version str - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- arn str
- ARN of the MWAA Environment.
- created_
at str - Date and time the environment was last updated.
- dag_
s3_ strpath - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- database_
vpc_ strendpoint_ service - VPC endpoint for the environment's Amazon RDS database.
- endpoint_
management str - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment_
class str - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - execution_
role_ strarn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- kms_
key str - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - last_
updateds Sequence[EnvironmentLast Updated Args] - Information about the last update of the environment. See
lastUpdatedBlock for details. - logging_
configuration EnvironmentLogging Configuration Args - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max_
webservers int - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max_
workers int - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min_
webservers int - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min_
workers int - Minimum number of workers that you want to run in your environment. Will be
1by default. - name str
- Name of the Apache Airflow Environment.
- network_
configuration EnvironmentNetwork Configuration Args - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - plugins_
s3_ strobject_ version - Version of the plugins.zip file you want to use.
- plugins_
s3_ strpath - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements_
s3_ strobject_ version - Version of the requirements.txt file you want to use.
- requirements_
s3_ strpath - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers int
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - service_
role_ strarn - Service Role ARN of the Amazon MWAA Environment.
- source_
bucket_ strarn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- startup_
script_ strs3_ object_ version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup_
script_ strs3_ path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- status str
- Status of the last update.
- Mapping[str, str]
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver_
access_ strmode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - webserver_
url str - Webserver URL of the MWAA Environment.
- webserver_
vpc_ strendpoint_ service - VPC endpoint for the environment's web server.
- weekly_
maintenance_ strwindow_ start - Start date for the weekly maintenance window.
- worker_
replacement_ strstrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
- airflow
Configuration Map<String>Options - Airflow override options. Check the Official documentation for all possible configuration options.
- airflow
Version String - Airflow version of your environment, will be set by default to the latest version that MWAA supports.
- arn String
- ARN of the MWAA Environment.
- created
At String - Date and time the environment was last updated.
- dag
S3Path String - Relative path to the DAG folder on your Amazon S3 storage bucket. For example, dags. For more information, see Importing DAGs on Amazon MWAA.
- database
Vpc StringEndpoint Service - VPC endpoint for the environment's Amazon RDS database.
- endpoint
Management String - Whether the VPC endpoints configured for the environment are created and managed by the customer or by AWS. If set to
SERVICE, Amazon MWAA will create and manage the required VPC endpoints in your VPC. If set toCUSTOMER, you must create, and manage, the VPC endpoints for your VPC. Defaults toSERVICEif not set. - environment
Class String - Environment class for the cluster. Possible options are
mw1.micro,mw1.small,mw1.medium,mw1.large. Will be set by default tomw1.small. Please check the AWS Pricing for more information about the environment classes. - execution
Role StringArn - ARN of the task execution role that the Amazon MWAA and its environment can assume. Check the official AWS documentation for the detailed role specification.
- kms
Key String - ARN of your KMS key that you want to use for encryption. Will be set to the ARN of the managed KMS key
aws/airflowby default. Please check the Official Documentation for more information. - last
Updateds List<Property Map> - Information about the last update of the environment. See
lastUpdatedBlock for details. - logging
Configuration Property Map - Apache Airflow logs you want to send to Amazon CloudWatch Logs. See
loggingConfigurationBlock for details. - max
Webservers Number - Maximum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - max
Workers Number - Maximum number of workers that can be automatically scaled up. Value need to be between
1and25. Will be10by default. - min
Webservers Number - Minimum number of web servers that you want to run in your environment. Value need to be between
2and5ifenvironmentClassis notmw1.micro,1otherwise. - min
Workers Number - Minimum number of workers that you want to run in your environment. Will be
1by default. - name String
- Name of the Apache Airflow Environment.
- network
Configuration Property Map - Network configuration for your Apache Airflow Environment. This includes two private subnets as well as security groups for the Airflow environment. Each subnet requires internet connection, otherwise the deployment will fail. See
networkConfigurationBlock for details. - plugins
S3Object StringVersion - Version of the plugins.zip file you want to use.
- plugins
S3Path String - Relative path to the plugins.zip file on your Amazon S3 storage bucket. For example, plugins.zip. If a relative path is provided in the request, then pluginsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- requirements
S3Object StringVersion - Version of the requirements.txt file you want to use.
- requirements
S3Path String - Relative path to the requirements.txt file on your Amazon S3 storage bucket. For example, requirements.txt. If a relative path is provided in the request, then requirementsS3ObjectVersion is required. For more information, see Importing DAGs on Amazon MWAA.
- schedulers Number
- Number of schedulers that you want to run in your environment. v2.0.2 and above accepts
2-5, default2. v1.10.12 accepts1. - service
Role StringArn - Service Role ARN of the Amazon MWAA Environment.
- source
Bucket StringArn - ARN of your Amazon S3 storage bucket. For example, arn:aws:s3:::airflow-mybucketname.
- startup
Script StringS3Object Version - Version of the startup shell script you want to use. You must specify the version ID that Amazon S3 assigns to the file every time you update the script.
- startup
Script StringS3Path - Relative path to the script hosted in your bucket. The script runs as your environment starts before starting the Apache Airflow process. Use this script to install dependencies, modify configuration options, and set environment variables. See Using a startup script. Supported for environment versions 2.x and later.
- status String
- Status of the last update.
- Map<String>
- Map of resource tags to associate with the resource. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block. - webserver
Access StringMode - Whether the webserver should be accessible over the internet or via your specified VPC. Possible options:
PRIVATE_ONLY(default),PUBLIC_ONLYandPUBLIC_AND_PRIVATE. - webserver
Url String - Webserver URL of the MWAA Environment.
- webserver
Vpc StringEndpoint Service - VPC endpoint for the environment's web server.
- weekly
Maintenance StringWindow Start - Start date for the weekly maintenance window.
- worker
Replacement StringStrategy - Worker replacement strategy. Valid values:
FORCED,GRACEFUL.
Supporting Types
EnvironmentLastUpdated, EnvironmentLastUpdatedArgs
- Created
At string - Date and time the environment was last updated.
- Errors
List<Environment
Last Updated Error> - Error that occurred during the last update, if any. See
last_updated.errorBlock for details. - Status string
- Status of the last update.
- Created
At string - Date and time the environment was last updated.
- Errors
[]Environment
Last Updated Error - Error that occurred during the last update, if any. See
last_updated.errorBlock for details. - Status string
- Status of the last update.
- created_
at string - Date and time the environment was last updated.
- errors list(object)
- Error that occurred during the last update, if any. See
last_updated.errorBlock for details. - status string
- Status of the last update.
- created
At String - Date and time the environment was last updated.
- errors
List<Environment
Last Updated Error> - Error that occurred during the last update, if any. See
last_updated.errorBlock for details. - status String
- Status of the last update.
- created
At string - Date and time the environment was last updated.
- errors
Environment
Last Updated Error[] - Error that occurred during the last update, if any. See
last_updated.errorBlock for details. - status string
- Status of the last update.
- created_
at str - Date and time the environment was last updated.
- errors
Sequence[Environment
Last Updated Error] - Error that occurred during the last update, if any. See
last_updated.errorBlock for details. - status str
- Status of the last update.
- created
At String - Date and time the environment was last updated.
- errors List<Property Map>
- Error that occurred during the last update, if any. See
last_updated.errorBlock for details. - status String
- Status of the last update.
EnvironmentLastUpdatedError, EnvironmentLastUpdatedErrorArgs
- Error
Code string - Error code of the last update error.
- Error
Message string - Error message of the last update error.
- Error
Code string - Error code of the last update error.
- Error
Message string - Error message of the last update error.
- error_
code string - Error code of the last update error.
- error_
message string - Error message of the last update error.
- error
Code String - Error code of the last update error.
- error
Message String - Error message of the last update error.
- error
Code string - Error code of the last update error.
- error
Message string - Error message of the last update error.
- error_
code str - Error code of the last update error.
- error_
message str - Error message of the last update error.
- error
Code String - Error code of the last update error.
- error
Message String - Error message of the last update error.
EnvironmentLoggingConfiguration, EnvironmentLoggingConfigurationArgs
- Dag
Processing EnvironmentLogs Logging Configuration Dag Processing Logs - Log configuration options for processing DAGs. See Module logging configuration blocks for details. Disabled by default.
- Scheduler
Logs EnvironmentLogging Configuration Scheduler Logs - Log configuration options for the schedulers. See Module logging configuration blocks for details. Disabled by default.
- Task
Logs EnvironmentLogging Configuration Task Logs - Log configuration options for DAG tasks. See Module logging configuration blocks for details. Enabled by default with
INFOlog level. - Webserver
Logs EnvironmentLogging Configuration Webserver Logs - Log configuration options for the webservers. See Module logging configuration blocks for details. Disabled by default.
- Worker
Logs EnvironmentLogging Configuration Worker Logs - Log configuration options for the workers. See Module logging configuration blocks for details. Disabled by default.
- Dag
Processing EnvironmentLogs Logging Configuration Dag Processing Logs - Log configuration options for processing DAGs. See Module logging configuration blocks for details. Disabled by default.
- Scheduler
Logs EnvironmentLogging Configuration Scheduler Logs - Log configuration options for the schedulers. See Module logging configuration blocks for details. Disabled by default.
- Task
Logs EnvironmentLogging Configuration Task Logs - Log configuration options for DAG tasks. See Module logging configuration blocks for details. Enabled by default with
INFOlog level. - Webserver
Logs EnvironmentLogging Configuration Webserver Logs - Log configuration options for the webservers. See Module logging configuration blocks for details. Disabled by default.
- Worker
Logs EnvironmentLogging Configuration Worker Logs - Log configuration options for the workers. See Module logging configuration blocks for details. Disabled by default.
- dag_
processing_ objectlogs - Log configuration options for processing DAGs. See Module logging configuration blocks for details. Disabled by default.
- scheduler_
logs object - Log configuration options for the schedulers. See Module logging configuration blocks for details. Disabled by default.
- task_
logs object - Log configuration options for DAG tasks. See Module logging configuration blocks for details. Enabled by default with
INFOlog level. - webserver_
logs object - Log configuration options for the webservers. See Module logging configuration blocks for details. Disabled by default.
- worker_
logs object - Log configuration options for the workers. See Module logging configuration blocks for details. Disabled by default.
- dag
Processing EnvironmentLogs Logging Configuration Dag Processing Logs - Log configuration options for processing DAGs. See Module logging configuration blocks for details. Disabled by default.
- scheduler
Logs EnvironmentLogging Configuration Scheduler Logs - Log configuration options for the schedulers. See Module logging configuration blocks for details. Disabled by default.
- task
Logs EnvironmentLogging Configuration Task Logs - Log configuration options for DAG tasks. See Module logging configuration blocks for details. Enabled by default with
INFOlog level. - webserver
Logs EnvironmentLogging Configuration Webserver Logs - Log configuration options for the webservers. See Module logging configuration blocks for details. Disabled by default.
- worker
Logs EnvironmentLogging Configuration Worker Logs - Log configuration options for the workers. See Module logging configuration blocks for details. Disabled by default.
- dag
Processing EnvironmentLogs Logging Configuration Dag Processing Logs - Log configuration options for processing DAGs. See Module logging configuration blocks for details. Disabled by default.
- scheduler
Logs EnvironmentLogging Configuration Scheduler Logs - Log configuration options for the schedulers. See Module logging configuration blocks for details. Disabled by default.
- task
Logs EnvironmentLogging Configuration Task Logs - Log configuration options for DAG tasks. See Module logging configuration blocks for details. Enabled by default with
INFOlog level. - webserver
Logs EnvironmentLogging Configuration Webserver Logs - Log configuration options for the webservers. See Module logging configuration blocks for details. Disabled by default.
- worker
Logs EnvironmentLogging Configuration Worker Logs - Log configuration options for the workers. See Module logging configuration blocks for details. Disabled by default.
- dag_
processing_ Environmentlogs Logging Configuration Dag Processing Logs - Log configuration options for processing DAGs. See Module logging configuration blocks for details. Disabled by default.
- scheduler_
logs EnvironmentLogging Configuration Scheduler Logs - Log configuration options for the schedulers. See Module logging configuration blocks for details. Disabled by default.
- task_
logs EnvironmentLogging Configuration Task Logs - Log configuration options for DAG tasks. See Module logging configuration blocks for details. Enabled by default with
INFOlog level. - webserver_
logs EnvironmentLogging Configuration Webserver Logs - Log configuration options for the webservers. See Module logging configuration blocks for details. Disabled by default.
- worker_
logs EnvironmentLogging Configuration Worker Logs - Log configuration options for the workers. See Module logging configuration blocks for details. Disabled by default.
- dag
Processing Property MapLogs - Log configuration options for processing DAGs. See Module logging configuration blocks for details. Disabled by default.
- scheduler
Logs Property Map - Log configuration options for the schedulers. See Module logging configuration blocks for details. Disabled by default.
- task
Logs Property Map - Log configuration options for DAG tasks. See Module logging configuration blocks for details. Enabled by default with
INFOlog level. - webserver
Logs Property Map - Log configuration options for the webservers. See Module logging configuration blocks for details. Disabled by default.
- worker
Logs Property Map - Log configuration options for the workers. See Module logging configuration blocks for details. Disabled by default.
EnvironmentLoggingConfigurationDagProcessingLogs, EnvironmentLoggingConfigurationDagProcessingLogsArgs
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ stringlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled boolean
- Whether to enable the collection of logs.
- log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ strlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level str - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
EnvironmentLoggingConfigurationSchedulerLogs, EnvironmentLoggingConfigurationSchedulerLogsArgs
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ stringlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled boolean
- Whether to enable the collection of logs.
- log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ strlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level str - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
EnvironmentLoggingConfigurationTaskLogs, EnvironmentLoggingConfigurationTaskLogsArgs
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ stringlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled boolean
- Whether to enable the collection of logs.
- log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ strlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level str - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
EnvironmentLoggingConfigurationWebserverLogs, EnvironmentLoggingConfigurationWebserverLogsArgs
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ stringlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled boolean
- Whether to enable the collection of logs.
- log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ strlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level str - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
EnvironmentLoggingConfigurationWorkerLogs, EnvironmentLoggingConfigurationWorkerLogsArgs
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- Cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- Enabled bool
- Whether to enable the collection of logs.
- Log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ stringlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch stringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled boolean
- Whether to enable the collection of logs.
- log
Level string - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud_
watch_ strlog_ group_ arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled bool
- Whether to enable the collection of logs.
- log_
level str - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
- cloud
Watch StringLog Group Arn - ARN of the CloudWatch Logs log group where the logs are published.
- enabled Boolean
- Whether to enable the collection of logs.
- log
Level String - Logging level. Valid values:
CRITICAL,ERROR,WARNING,INFO,DEBUG. Will beINFOby default.
EnvironmentNetworkConfiguration, EnvironmentNetworkConfigurationArgs
- Security
Group List<string>Ids - Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
- Subnet
Ids List<string> - Private subnet IDs in which the environment should be created. MWAA requires two subnets.
- Security
Group []stringIds - Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
- Subnet
Ids []string - Private subnet IDs in which the environment should be created. MWAA requires two subnets.
- security_
group_ list(string)ids - Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
- subnet_
ids list(string) - Private subnet IDs in which the environment should be created. MWAA requires two subnets.
- security
Group List<String>Ids - Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
- subnet
Ids List<String> - Private subnet IDs in which the environment should be created. MWAA requires two subnets.
- security
Group string[]Ids - Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
- subnet
Ids string[] - Private subnet IDs in which the environment should be created. MWAA requires two subnets.
- security_
group_ Sequence[str]ids - Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
- subnet_
ids Sequence[str] - Private subnet IDs in which the environment should be created. MWAA requires two subnets.
- security
Group List<String>Ids - Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
- subnet
Ids List<String> - Private subnet IDs in which the environment should be created. MWAA requires two subnets.
Import
Using pulumi import, import MWAA Environment using Name. For example:
$ pulumi import aws:mwaa/environment:Environment example MyAirflowEnvironment
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Oct 15, 2026 by Pulumi