Skip to content

Commit 01e7d02

Browse files
committed
Fix style
1 parent a273fb2 commit 01e7d02

File tree

6 files changed

+53
-45
lines changed

6 files changed

+53
-45
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
# AWS Auto Scaling Group (ASG) Terraform module
2+
13
[![CircleCI](https://circleci.com/gh/devops-workflow/terraform-aws-autoscaling/tree/master.svg?style=svg)](https://circleci.com/gh/devops-workflow/terraform-aws-autoscaling/tree/master)
24
[![Github release](https://img.shields.io/github/release/devops-workflow/terraform-aws-autoscaling.svg)](https://github.com/devops-workflow/terraform-aws-autoscaling/releases)
35

4-
# AWS Auto Scaling Group (ASG) Terraform module
5-
66
Terraform module which creates Auto Scaling resources on AWS.
77

88
These types of resources are supported:
@@ -71,20 +71,27 @@ module "asg" {
7171

7272
## Conditional creation
7373

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+
7678
1. To create ASG, but not LC. Associate ASG with an existing LC:
79+
7780
```hcl
7881
create_lc = false
7982
launch_configuration = "existing-launch-configuration"
8083
```
8184

8285
1. To create LC, but not ASG. Outputs may produce errors.
86+
8387
```hcl
8488
create_asg = false
8589
```
8690

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

8996
## Examples
9097

examples/disabled/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
Auto Scaling Group: Disabled
2-
======================================
1+
# Auto Scaling Group: Disabled
32

43
Configuration in this directory run with the module disabled.
54

65
The module should create nothing and not error on any of the outputs
76

8-
Usage
9-
=====
7+
## Usage
108

119
To run this example you need to execute:
1210

1311
```bash
14-
$ terraform init
15-
$ terraform plan
16-
$ terraform apply
12+
terraform init
13+
terraform plan
14+
terraform apply
1715
```
1816

19-
Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources.
17+
Note that this example may create resources which cost money. Run
18+
`terraform destroy` when you don't need these resources.

examples/ec2/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
Auto Scaling Group without ELB example
2-
======================================
1+
# Auto Scaling Group without ELB example
32

4-
Configuration in this directory creates Launch Configuration and Auto Scaling Group.
3+
Configuration in this directory creates Launch Configuration and
4+
Auto Scaling Group.
55

6-
Data sources are used to discover existing VPC resources (VPC, subnet and security group) as well as AMI details.
6+
Data sources are used to discover existing VPC resources (VPC, subnet
7+
and security group) as well as AMI details.
78

8-
Usage
9-
=====
9+
## Usage
1010

1111
To run this example you need to execute:
1212

1313
```bash
14-
$ terraform init
15-
$ terraform plan
16-
$ terraform apply
14+
terraform init
15+
terraform plan
16+
terraform apply
1717
```
1818

19-
Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources.
19+
Note that this example may create resources which cost money. Run
20+
`terraform destroy` when you don't need these resources.

examples/elb/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
Auto Scaling Group with ELB example
2-
===================================
1+
# Auto Scaling Group with ELB example
32

4-
Configuration in this directory creates Launch Configuration, Auto Scaling Group, Elastic Load Balancer and places Auto Scaling EC2 instances under ELB.
3+
Configuration in this directory creates Launch Configuration, Auto Scaling
4+
Group, Elastic Load Balancer and places Auto Scaling EC2 instances under ELB.
55

6-
Data sources are used to discover existing VPC resources (VPC, subnet and security group) as well as AMI details.
6+
Data sources are used to discover existing VPC resources (VPC, subnet
7+
and security group) as well as AMI details.
78

8-
Usage
9-
=====
9+
## Usage
1010

1111
To run this example you need to execute:
1212

1313
```bash
14-
$ terraform init
15-
$ terraform plan
16-
$ terraform apply
14+
terraform init
15+
terraform plan
16+
terraform apply
1717
```
1818

19-
Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources.
19+
Note that this example may create resources which cost money. Run
20+
`terraform destroy` when you don't need these resources.

examples/other-modules/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ that use this module.
55

66
These can also serve as more examples
77

8-
98
| Name | GitHub Repo | Terraform Registry |
109
|-----|-----|-----|
11-
| ecs-cluster | [Repo](https://github.com/devops-workflow/terraform-aws-ecs-cluster) | [Registry]() |
10+
| ecs-cluster | [Repo](https://github.com/devops-workflow/terraform-aws-ecs-cluster) | [Registry](https://registry.terraform.io/modules/devops-workflow/ecs-cluster/aws) |

examples/wrapper/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
Auto Scaling Group wrapper sample
2-
======================================
1+
# Auto Scaling Group wrapper sample
32

43
This is a sample setup for replacing an existing module
54

6-
Configuration in this directory creates Launch Configuration and Auto Scaling Group.
5+
Configuration in this directory creates Launch Configuration and Auto Scaling
6+
Group.
77

8-
Data sources are used to discover existing VPC resources (VPC, subnet and security group) as well as AMI details.
8+
Data sources are used to discover existing VPC resources (VPC, subnet
9+
and security group) as well as AMI details.
910

10-
Usage
11-
=====
11+
## Usage
1212

1313
To run this example you need to execute:
1414

1515
```bash
16-
$ terraform init
17-
$ terraform plan
18-
$ terraform apply
16+
terraform init
17+
terraform plan
18+
terraform apply
1919
```
2020

21-
Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources.
21+
Note that this example may create resources which cost money. Run
22+
`terraform destroy` when you don't need these resources.

0 commit comments

Comments
 (0)