|
| 1 | +# AWS Auto Scaling Group (ASG) Terraform module |
| 2 | + |
1 | 3 | [](https://circleci.com/gh/devops-workflow/terraform-aws-autoscaling/tree/master)
|
2 | 4 | [](https://github.com/devops-workflow/terraform-aws-autoscaling/releases)
|
3 | 5 |
|
4 |
| -# AWS Auto Scaling Group (ASG) Terraform module |
5 |
| - |
6 | 6 | Terraform module which creates Auto Scaling resources on AWS.
|
7 | 7 |
|
8 | 8 | These types of resources are supported:
|
@@ -71,20 +71,27 @@ module "asg" {
|
71 | 71 |
|
72 | 72 | ## Conditional creation
|
73 | 73 |
|
74 |
| -Normally this module creates both Auto Scaling Group (ASG) and Launch Configuration (LC), and connect them together. |
75 |
| -It is possible to customize this behaviour passing different parameters to this module: |
| 74 | +Normally this module creates both Auto Scaling Group (ASG) and Launch |
| 75 | +Configuration (LC), and connect them together. It is possible to customize |
| 76 | +this behaviour passing different parameters to this module: |
| 77 | + |
76 | 78 | 1. To create ASG, but not LC. Associate ASG with an existing LC:
|
| 79 | + |
77 | 80 | ```hcl
|
78 | 81 | create_lc = false
|
79 | 82 | launch_configuration = "existing-launch-configuration"
|
80 | 83 | ```
|
81 | 84 |
|
82 | 85 | 1. To create LC, but not ASG. Outputs may produce errors.
|
| 86 | + |
83 | 87 | ```hcl
|
84 | 88 | create_asg = false
|
85 | 89 | ```
|
86 | 90 |
|
87 |
| -1. To disable creation of both resources (LC and ASG) you can specify both arguments `create_lc = false` and `create_asg = false`. Sometimes you need to use this way to create resources in modules conditionally but Terraform does not allow to use `count` inside `module` block. |
| 91 | +1. To disable creation of both resources (LC and ASG) you can specify both |
| 92 | +arguments `create_lc = false` and `create_asg = false`. Sometimes you need |
| 93 | +to use this way to create resources in modules conditionally but Terraform |
| 94 | +does not allow to use `count` inside `module` block. |
88 | 95 |
|
89 | 96 | ## Examples
|
90 | 97 |
|
|
0 commit comments