Skip to content

Commit

Permalink
Merge pull request #10
Browse files Browse the repository at this point in the history
* feat: remove redundant tags from modules
  • Loading branch information
vytautaskubilius committed Aug 25, 2021
1 parent 7004968 commit d2415e7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 36 deletions.
8 changes: 0 additions & 8 deletions modules/route53_hosted_zone/dependencies.tf

This file was deleted.

1 change: 0 additions & 1 deletion modules/route53_hosted_zone/main.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
resource "aws_route53_zone" "zone" {
name = var.name
tags = local.common_tags
}
6 changes: 0 additions & 6 deletions modules/route53_hosted_zone/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,3 @@ variable "project" {
description = "The project into which this module is being deployed (used for tagging resources)"
type = string
}

variable "tags" {
description = "Map of additional tags to apply to all resources"
type = map(string)
default = {}
}
8 changes: 0 additions & 8 deletions modules/vpc/dependencies.tf

This file was deleted.

7 changes: 0 additions & 7 deletions modules/vpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
resource "aws_vpc" "vpc" {
cidr_block = var.cidr_block
tags = merge({
Name = var.name
},
local.common_tags)
}

resource "aws_internet_gateway" "igw" {
vpc_id = aws_vpc.vpc.id
tags = local.common_tags
}

resource "aws_subnet" "public" {
cidr_block = cidrsubnet(var.cidr_block, 4, 0)
vpc_id = aws_vpc.vpc.id
map_public_ip_on_launch = true
tags = local.common_tags
}

resource "aws_route_table" "rt_public" {
vpc_id = aws_vpc.vpc.id
tags = local.common_tags
}

resource "aws_route" "default_public" {
Expand Down
6 changes: 0 additions & 6 deletions modules/vpc/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ variable "project" {
description = "The project into which this module is being deployed (used for tagging resources)"
type = string
}

variable "tags" {
description = "Map of additional tags to apply to all resources"
type = map(string)
default = {}
}

0 comments on commit d2415e7

Please sign in to comment.