Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Adapt tags to receive map of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuniorlima committed Mar 29, 2021
1 parent 6ffefd7 commit e2a3d1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 53 deletions.
32 changes: 4 additions & 28 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ resource "aws_s3_bucket" "s3_default" {
}
}

tags = {
environment = var.environment
application = var.application
vs = var.vs
project = var.project
team = var.team
}
tags = var.tags

}

Expand Down Expand Up @@ -135,13 +129,7 @@ resource "aws_s3_bucket" "s3_website" {
}
}

tags = {
environment = var.environment
application = var.application
vs = var.vs
project = var.project
team = var.team
}
tags = var.tags

}

Expand Down Expand Up @@ -207,13 +195,7 @@ resource "aws_s3_bucket" "s3_logging" {
target_prefix = var.target_prefix
}

tags = {
environment = var.environment
application = var.application
vs = var.vs
project = var.project
team = var.team
}
tags = var.tags

}

Expand Down Expand Up @@ -283,13 +265,7 @@ resource "aws_s3_bucket" "s3_encryption" {
}
}

tags = {
environment = var.environment
application = var.application
vs = var.vs
project = var.project
team = var.team
}
tags = var.tags

}

Expand Down
25 changes: 0 additions & 25 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,6 @@ variable "name" {
description = "Name (e.g. `app` or `cluster`)."
}

variable "environment" {
type = string
description = "Environment name to be appended on resources"
}

variable "application" {
type = string
description = "Application name to identify resources"
}

variable "project" {
type = string
description = "Project name to identify resources"
}

variable "team" {
type = string
description = "Team assigned to project"
}

variable "vs" {
type = string
description = "Value Stream"
}

variable "label_order" {
type = list
default = []
Expand Down

0 comments on commit e2a3d1e

Please sign in to comment.