Skip to content

Commit

Permalink
Update tags variable for var.env injection
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanDumortier committed Apr 19, 2024
1 parent 7419d69 commit bc69336
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,19 @@ variable "create_vpc_endpoints" {
type = bool
description = "Whether to create the VPC S3 endpoint configuration. Enabled by default for prod environments"
default = false
}

# ------------------------------------------------------------------------------------


######################################
# Resource tagging
######################################

variable "tags" {
type = map(string)
description = "Tags to add to all created resources"
default = {
"nubex-lz:tf-managed" = "true"
}
}
3 changes: 3 additions & 0 deletions vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ module "vpc" {

# VPC S3 endpoint
create_vpc_endpoints = var.create_vpc_endpoints

# Generic tags applied to all resources
tags = merge(var.tags, { "peinser:lz-env" = var.env })
}

0 comments on commit bc69336

Please sign in to comment.