terraform-aws-airflow
terraform-aws-airflow copied to clipboard
ASG
@edbizarro I plan to separate the resources into separate files. For example, I will create a webserver.tf
file which includes everything, ASG, SG, etc.
IIRC the terraform registry don't allow/recognize the resources in this way, they assumes that all resources are in the main file
@edbizarro see https://www.terraform.io/docs/configuration/index.html:
The simplest Terraform configuration is a single root module containing only a single .tf file. A configuration can grow gradually as more resources are added, either by creating new configuration files within the root module or by organizing sets of resources into child modules.
When Terraform is planning, applying or destroying resources, the CLI searches for valid .tf
files in the directory. Before Terraform does anything, all these files are merged into a single file and gets used with the fired command. 😄
ASGs would be great, any thoughts on how to provision the files that are uploaded via SSH now with ASGs and a launch template?