Skip to content

Commit

Permalink
Add naming convention for: recovery_services_vault (Azure#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Valdivieso authored Oct 21, 2021
1 parent d86d409 commit 09be0b9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,16 @@ locals {
scope = "parent"
regex = "^[a-zA-Z0-9][a-zA-Z0-9-._]+[a-zA-Z0-9_]$"
}
recovery_services_vault = {
name = substr(join("-", compact([local.prefix, "rsv", local.suffix])), 0, 50)
name_unique = substr(join("-", compact([local.prefix, "rsv", local.suffix_unique])), 0, 50)
dashes = true
slug = "rsv"
min_length = 2
max_length = 50
scope = "global"
regex = "^[a-zA-Z][a-zA-Z0-9-]+[a-zA-Z0-9]$"
}
redis_cache = {
name = substr(join("-", compact([local.prefix, "redis", local.suffix])), 0, 63)
name_unique = substr(join("-", compact([local.prefix, "redis", local.suffix_unique])), 0, 63)
Expand Down
11 changes: 11 additions & 0 deletions resourceDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,17 @@
"slug": "pippf",
"dashes": true
},
{
"name": "recovery_services_vault",
"length": {
"min": 2,
"max": 50
},
"regex": "^(?=.{2,50}$)[a-zA-Z][a-zA-Z0-9-]+[a-zA-Z0-9]$",
"scope": "global",
"slug": "rsv",
"dashes": true
},
{
"name": "redis_cache",
"length": {
Expand Down

0 comments on commit 09be0b9

Please sign in to comment.