terraform-aws-airflow icon indicating copy to clipboard operation
terraform-aws-airflow copied to clipboard

ASG

Open edbizarro opened this issue 5 years ago • 4 comments

edbizarro avatar Mar 27 '19 02:03 edbizarro

@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.

fmunteanu avatar Jul 30 '19 20:07 fmunteanu

IIRC the terraform registry don't allow/recognize the resources in this way, they assumes that all resources are in the main file

edbizarro avatar Jul 30 '19 21:07 edbizarro

@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. 😄

fmunteanu avatar Aug 01 '19 16:08 fmunteanu

ASGs would be great, any thoughts on how to provision the files that are uploaded via SSH now with ASGs and a launch template?

marcomayer avatar Aug 27 '19 12:08 marcomayer