mwaa

cloudposse/mwaa/aws

Terraform Module HCL AWS

Terraform module to provision Amazon Managed Workflows for Apache Airflow (MWAA)

Install
module "mwaa" {
source = "cloudposse/mwaa/aws"
version = "0.15.0"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to provision Amazon Managed Workflows for Apache Airflow > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest (which tests and deploys the example on AWS), see test. ```hcl module "mwaa" { source = "cloudposse/mwaa/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" vpc_id = var.vpc_id subnet_ids = var.subnet_ids airflow_version = "2.0.2" dag_s3_path = "d

Inputs (50)
NameTypeDescriptionDefault
regionstringAWS region required
subnet_idslist(string)The private subnet IDs in which the environment should be created. MWAA requires required
create_s3_bucketboolEnabling or disabling the creatation of an S3 bucket for AWS MWAAtrue
startup_script_s3_object_versionstringThe version of the startup shell script you want to use. You must specify the venull
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
schedulersnumberThe number of schedulers that you want to run in your environment.2
dag_processing_logs_enabledboolEnabling or disabling the collection of logs for processing DAGsfalse
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
security_group_create_timeoutstringHow long to wait for the security group to be created."10m"
allow_all_egressboolIf `true`, the created security group will allow egress on all ports and protocotrue
requirements_s3_pathstringThe relative path to the requirements.txt file on your Amazon S3 storage bucket.null
task_logs_enabledboolEnabling or disabling the collection of logs for DAG tasksfalse
scheduler_logs_enabledboolEnabling or disabling the collection of logs for the schedulersfalse
associated_security_group_idslist(string)A list of IDs of Security Groups to associate the created resource with, in addi[]
allowed_cidr_blockslist(string)A list of IPv4 CIDRs to allow access to the security group created by this modul[]
max_workersnumberThe maximum number of workers that can be automatically scaled up. Value need to10
enabledboolSet to false to prevent the module from creating any resourcesnull
execution_role_arnstringIf `create_iam_role` is `false` then set this to the target MWAA execution role""
environment_classstringEnvironment class for the cluster. Possible options are mw1.small, mw1.medium, m"mw1.small"
requirements_s3_object_versionstringThe requirements.txt file version younull
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
… and 10 more inputs
Outputs (12)
security_group_name — The name of the created security group
arn — The ARN of the Amazon MWAA Environment
created_at — The Created At date of the Amazon MWAA Environment
logging_configuration — The Logging Configuration of the Amazon MWAA Environment
service_role_arn — The Service Role ARN of the Amazon MWAA Environment
status — The status of the Amazon MWAA Environment
tags_all — A map of tags assigned to the resource, including those inherited from the provider for the Amazon M
webserver_url — The webserver URL of the Amazon MWAA Environment
security_group_id — The ID of the created security group
s3_bucket_arn — ARN of the S3 bucket
execution_role_arn — IAM Role ARN for Amazon MWAA Execution Role
security_group_arn — The ARN of the created security group
Resources (1)
aws_mwaa_environment
Details
FrameworkTerraform Module
LanguageHCL
Version0.15.0
Cloud AWS
★ Stars23
Forks15
Total downloads207.7k
Inputs50
Outputs12
Resources1
Examples2
LicenseApache-2.0
Namespacecloudposse
Updated