Skip to content

Commit 6f9bdf8

Browse files
committed
Fixing typo
1 parent 07034e2 commit 6f9bdf8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

examples/test/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ provider "aws" {
44

55
module "base-network" {
66
source = "cn-terraform/networking/aws"
7-
version = "2.0.7"
8-
name_preffix = "test-networking"
7+
version = "2.0.10"
8+
name_prefix = "test-networking"
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"]
@@ -20,15 +20,15 @@ module "cluster" {
2020

2121
module "td" {
2222
source = "cn-terraform/ecs-fargate-task-definition/aws"
23-
version = "1.0.14"
24-
name_preffix = "test-td"
23+
version = "1.0.15"
24+
name_prefix = "test-td"
2525
container_image = "ubuntu"
2626
container_name = "test"
2727
}
2828

2929
module "task" {
3030
source = "../../"
31-
name_preffix = "test-task"
31+
name_prefix = "test-task"
3232
event_rule_name = "test-rule"
3333
ecs_cluster_arn = module.cluster.aws_ecs_cluster_cluster_arn
3434
event_target_ecs_target_subnets = module.base-network.public_subnets_ids

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# CLOUDWATCH EVENT ROLE
33
#------------------------------------------------------------------------------
44
resource "aws_iam_role" "scheduled_task_cw_event_role" {
5-
name = "${var.name_preffix}-st-cw-role"
5+
name = "${var.name_prefix}-st-cw-role"
66
assume_role_policy = file("${path.module}/files/iam/scheduled_task_cw_event_role_assume_role_policy.json")
77
}
88

@@ -14,7 +14,7 @@ data "template_file" "scheduled_task_cw_event_role_cloudwatch_policy" {
1414
}
1515

1616
resource "aws_iam_role_policy" "scheduled_task_cw_event_role_cloudwatch_policy" {
17-
name = "${var.name_preffix}-st-cw-policy"
17+
name = "${var.name_prefix}-st-cw-policy"
1818
role = aws_iam_role.scheduled_task_cw_event_role.id
1919
policy = data.template_file.scheduled_task_cw_event_role_cloudwatch_policy.rendered
2020
}
@@ -30,7 +30,7 @@ resource "aws_cloudwatch_event_rule" "event_rule" {
3030
role_arn = var.event_rule_role_arn
3131
is_enabled = var.event_rule_is_enabled
3232
tags = {
33-
Name = "${var.name_preffix}-cw-event-rule"
33+
Name = "${var.name_prefix}-cw-event-rule"
3434
}
3535
}
3636

variables.tf

Lines changed: 2 additions & 2 deletions
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)