Skip to content

Commit

Permalink
Merge pull request #2 from dodevops/feature/te/tags
Browse files Browse the repository at this point in the history
feat: Adding variable to assign tags to resources
  • Loading branch information
timdeluxe authored Oct 8, 2021
2 parents 22aed1c + ece0fa8 commit ee589aa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,20 @@ The following input variables are optional (have default values):

### delete\_retention\_policy

Description: days until soft deleted resources are hard deleted
Description: Days until soft deleted resources are hard deleted

Type: `number`

Default: `7`

### tags

Description: Map of tags for the resources

Type: `map(any)`

Default: `{}`

## Outputs

No outputs.
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "azurerm_storage_account" "storage-account" {
enable_https_traffic_only = true
allow_blob_public_access = false
min_tls_version = "TLS1_2"
tags = var.tags

blob_properties {
delete_retention_policy {
Expand Down
6 changes: 6 additions & 0 deletions vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ variable "location" {
description = "The azure location used for azure"
}

variable "tags" {
type = map(any)
description = "Map of tags for the resources"
default = {}
}

variable "resource_group" {
type = string
description = "Name of the resource group to use"
Expand Down

0 comments on commit ee589aa

Please sign in to comment.