2/13/2023 0 Comments Tv app repo github![]() This shouldīe defined by the user of the module and not in the module itself.įigure 4-6. Open up the main.tf file in modules/services/webserver-cluster and remove the provider definition. You should end up with a folder structure Stage/services/webserver-cluster to modules/services/webserver-cluster. ![]() ![]() Next, create a new top-level folder called modules and move all the files from Modules are really capable of, you have to use one module from another module.Īs an example, let’s turn the code in stage/services/webserver-cluster, which includes an Auto Scaling Group (ASG),Įlastic Load Balancer (ELB), security groups, and many other resources, into a reusable module.Īs a first step, run terraform destroy in the stage/services/webserver-cluster to clean up any resources youĬreated earlier. You deployed them directly (the module in the current working directory is called the root module). ![]() All theĬonfigurations you’ve written so far have technically been modules, although not particularly interesting ones, since ![]() A Terraform module is very simple: any set of Terraform configuration files in a folder is a module. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |