Skip to content

Commit c73d1ea

Browse files
committed
Fixing typos
1 parent 60b6edf commit c73d1ea

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

examples/test/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ provider "aws" {
55
module "base-network" {
66
source = "cn-terraform/networking/aws"
77
version = "2.0.8"
8-
name_preffix = "base"
8+
name_prefix = "base"
99
vpc_cidr_block = "192.168.0.0/16"
1010
availability_zones = ["us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d"]
1111
public_subnets_cidrs_per_availability_zone = ["192.168.0.0/19", "192.168.32.0/19", "192.168.64.0/19", "192.168.96.0/19"]
@@ -14,7 +14,7 @@ module "base-network" {
1414

1515
module "load_balancer" {
1616
source = "../../"
17-
name_preffix = "test-alb"
17+
name_prefix = "test-alb"
1818
vpc_id = module.base-network.vpc_id
1919
private_subnets = module.base-network.private_subnets_ids
2020
public_subnets = module.base-network.public_subnets_ids

main.tf

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
# S3 BUCKET - For access logs
33
#------------------------------------------------------------------------------
44
# resource "aws_s3_bucket" "logs" {
5-
# bucket = "${var.name_preffix}-lb-logs"
5+
# bucket = "${var.name_prefix}-lb-logs"
66
# region = var.region
77
# tags = {
8-
# Name = "${var.name_preffix}-lb-logs"
8+
# Name = "${var.name_prefix}-lb-logs"
99
# }
1010
# }
1111

1212
#------------------------------------------------------------------------------
1313
# APPLICATION LOAD BALANCER
1414
#------------------------------------------------------------------------------
1515
resource "aws_lb" "lb" {
16-
name = "${var.name_preffix}-lb"
16+
name = "${var.name_prefix}-lb"
1717
internal = var.internal
1818
load_balancer_type = "application"
1919
drop_invalid_header_fields = var.drop_invalid_header_fields
@@ -33,15 +33,15 @@ resource "aws_lb" "lb" {
3333
# enabled = true
3434
# }
3535
tags = {
36-
Name = "${var.name_preffix}-lb"
36+
Name = "${var.name_prefix}-lb"
3737
}
3838
}
3939

4040
#------------------------------------------------------------------------------
4141
# ACCESS CONTROL TO APPLICATION LOAD BALANCER
4242
#------------------------------------------------------------------------------
4343
resource "aws_security_group" "lb_access_sg" {
44-
name = "${var.name_preffix}-lb-access-sg"
44+
name = "${var.name_prefix}-lb-access-sg"
4545
description = "Controls access to the Load Balancer"
4646
vpc_id = var.vpc_id
4747
egress {
@@ -51,7 +51,7 @@ resource "aws_security_group" "lb_access_sg" {
5151
cidr_blocks = ["0.0.0.0/0"]
5252
}
5353
tags = {
54-
Name = "${var.name_preffix}-lb-access-sg"
54+
Name = "${var.name_prefix}-lb-access-sg"
5555
}
5656
}
5757

@@ -82,7 +82,7 @@ resource "aws_security_group_rule" "ingress_through_https" {
8282
#------------------------------------------------------------------------------
8383
resource "aws_lb_target_group" "lb_http_tgs" {
8484
count = var.enable_http ? length(var.http_ports) : 0
85-
name = "${var.name_preffix}-lb-http-tg-${count.index}"
85+
name = "${var.name_prefix}-lb-http-tg-${count.index}"
8686
port = element(var.http_ports, count.index)
8787
protocol = "HTTP"
8888
vpc_id = var.vpc_id
@@ -109,7 +109,7 @@ resource "aws_lb_target_group" "lb_http_tgs" {
109109
}
110110
target_type = "ip"
111111
tags = {
112-
Name = "${var.name_preffix}-lb-http-tg-${count.index}"
112+
Name = "${var.name_prefix}-lb-http-tg-${count.index}"
113113
}
114114
lifecycle {
115115
create_before_destroy = true
@@ -119,7 +119,7 @@ resource "aws_lb_target_group" "lb_http_tgs" {
119119

120120
resource "aws_lb_target_group" "lb_https_tgs" {
121121
count = var.enable_https ? length(var.https_ports) : 0
122-
name = "${var.name_preffix}-lb-https-tg-${count.index}"
122+
name = "${var.name_prefix}-lb-https-tg-${count.index}"
123123
port = element(var.https_ports, count.index)
124124
protocol = "HTTPS"
125125
vpc_id = var.vpc_id
@@ -146,7 +146,7 @@ resource "aws_lb_target_group" "lb_https_tgs" {
146146
}
147147
target_type = "ip"
148148
tags = {
149-
Name = "${var.name_preffix}-lb-https-tg-${count.index}"
149+
Name = "${var.name_prefix}-lb-https-tg-${count.index}"
150150
}
151151
lifecycle {
152152
create_before_destroy = true

variables.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#------------------------------------------------------------------------------
22
# Misc
33
#------------------------------------------------------------------------------
4-
variable "name_preffix" {
5-
description = "Name preffix for resources on AWS"
4+
variable "name_prefix" {
5+
description = "Name prefix for resources on AWS"
66
}
77

88
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)