Skip to content

Commit

Permalink
adding variable for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirsekhri committed Feb 14, 2023
1 parent 311cc97 commit 92cedb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/s3-smb-share/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ resource "aws_storagegateway_smb_file_share" "smbshare" {
cache_stale_timeout_in_seconds = var.cache_timout
}

tags = {
Environment = "dev"
Application = "serviceA"
}
tags = var.tags

}
6 changes: 6 additions & 0 deletions modules/s3-smb-share/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ variable "cache_timout" {
description = "Cache stale timeout for automated cache refresh in seconds. Default is set to 1 hour (3600 seconds) can be changed to as low as 5 minutes (300 seconds)"
default = "3600"
}

variable "tags" {
type = map(any)
description = "(Optional) Key-value map of resource tags."
default = {}
}

0 comments on commit 92cedb3

Please sign in to comment.