Skip to content

Commit

Permalink
Moved the tags to be a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
omers committed Jul 3, 2023
1 parent 0e22548 commit 968b48e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
terraform.tfstate*
.terraform
.terragrunt-cache
.terraform.lock.hcl
.terraform.lock.hcl
.idea/
5 changes: 1 addition & 4 deletions provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ terraform {
provider "aws" {
region = var.region
default_tags {
tags = {
Environment = var.environment
Owner = "Ops"
}
tags = var.resource_tags
}
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ variable "emails" {
variable "raise_amount_percent" {
type = string
description = "An Expression object used to specify the anomalies that you want to generate alerts for. The precentage service cost increase than the expected"
}

variable "resource_tags" {
description = "Tags to set for all resources"
type = map(string)
default = {}
}

0 comments on commit 968b48e

Please sign in to comment.