Skip to content

Commit 812bdaf

Browse files
committed
Fix style guides violations in style guides
1 parent d42f924 commit 812bdaf

File tree

10 files changed

+60
-10
lines changed

10 files changed

+60
-10
lines changed

content/terraform/v1.10.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.11.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.12.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.2.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.3.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.4.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.6.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.7.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.8.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

content/terraform/v1.9.x/docs/language/style.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,25 @@ variable "web_instances" {
355355
"metrics"
356356
]
357357
}
358+
358359
resource "aws_instance" "web" {
359360
for_each = toset(var.web_instances)
361+
360362
ami = data.aws_ami.webapp.id
361363
instance_type = "t3.micro"
364+
362365
tags = {
363366
Name = "web_${each.key}"
364367
}
365368
}
369+
366370
output "web_private_ips" {
367371
description = "Private IPs of the web instances"
368372
value = {
369373
for k, v in aws_instance.web : k => v.private_ip
370374
}
371375
}
376+
372377
output "web_ui_public_ip" {
373378
description = "Public IP of the web UI instance"
374379
value = aws_instance.web["ui"].public_ip
@@ -403,8 +408,8 @@ A common practice to conditionally create resources is to use the `count` meta-a
403408

404409
```hcl
405410
variable "enable_metrics" {
406-
description = "True if the metrics server should be deployed"
407411
type = bool
412+
description = "True if the metrics server should be deployed"
408413
default = true
409414
}
410415

0 commit comments

Comments
 (0)