Home

Awesome

terraform-aws-airflow-docker

open-issues open-pr

Features

This module sets up an airflow instance or cluster.

Terraform Versions

For Terraform v0.12.0+

Usage

variable "private_key_path" {}
variable "public_key_path" {}

module "defaults" {
  source = "github.com/insight-infrastructure/terraform-aws-airflow-docker"
  private_key_path = var.private_key_path
  public_key_path = var.public_key_path
}

Examples

Known Issues

No issue is creating limit on this module.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

Providers

NameVersion
awsn/a

Inputs

NameDescriptionTypeDefaultRequired
additional_policy_arnsList of additional policy arnslist(string)[]no
additional_security_group_idsList of security groupslist(string)[]no
amiAMI to use as base image - blank for ubuntustring""no
bastion_ipOptional IP for bastion - blank for no bastionstring""no
bastion_userOptional bastion user - blank for no bastionstring""no
cloudwatch_enableEnable CWboolfalseno
createBoolean to create resources or notbooltrueno
create_dnsBool to create ssl cert and nginx proxybooltrueno
create_ebs_volume#### EBS ####boolfalseno
create_iamBool to create iam roleboolfalseno
create_sgBool for create security groupbooltrueno
device_nameThe path of the EBS volumestring"/dev/xvdf"no
domain_nameThe domain - example.com. Blank for no ssl / nginxstring""no
ebs_volume_sizeSize of attached ebs volumenumber8no
hostnameThe hostname - ie hostname.example.comstring"airflow"no
instance_typeInstance typestring"t3.small"no
key_nameThe key pair to import - leave blank to generate new keypair from pub/priv ssh key pathstring""no
logging_bucket_nameName of bucket for logs - blank for logs-<account-id>string""no
logs_bucket_enableCreate bucket to put logsboolfalseno
monitoringBoolean for cloudwatchboolfalseno
nameThe name for the labelstring"airflow"no
playbook_varsAdditional playbook varsmap(string){}no
private_key_pathThe path to the private ssh keystringn/ayes
private_port_cidrsList of CIDR blocks for private portslist(string)<pre>[<br> "172.31.0.0/16"<br>]</pre>no
private_portsList of publicly open portslist(number)[]no
public_key_pathThe path to the public ssh keystringn/ayes
public_portsList of publicly open portslist(number)<pre>[<br> 22,<br> 80,<br> 3000,<br> 9090<br>]</pre>no
root_iopsn/astringn/ayes
root_volume_sizeRoot volume sizenumber8no
root_volume_typen/astring"gp2"no
subnet_idThe id of the subnetstring""no
suffixSuffix to attach to namestring""no
tagsMap of tagsmap(string){}no
vpc_idCustom vpc id - leave blank for deaultstring""no

Outputs

NameDescription
instance_idn/a
instance_store_enabledn/a
instance_typen/a
key_namen/a
public_ipn/a
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

Testing

This module has been packaged with terratest tests

To run them:

  1. Install Go
  2. Run make test-init from the root of this repo
  3. Run make test again from root

Authors

Module managed by insight-infrastructure

Credits

License

Apache 2 Licensed. See LICENSE for full details.