Skip to content

Commit

Permalink
Azure Container Registry Naming (Azure#23)
Browse files Browse the repository at this point in the history
* Hyphen allowed in des and dsk

The value must have a length of at most 80.
The name must begin with a letter or number, end with a letter, number or underscore, and may contain only letters, numbers, underscores, periods, or hyphens.

* Add correct syntax for DES & managed disks in resourceDefinition.json

* Undo changes in main.tf

* go run main.go

* terraform fmt

* Change slug of AzureContainerRegistry from cr => acr

* Run make
  • Loading branch information
Marcel Sinn authored Jul 20, 2020
1 parent 5ed9ddf commit 60a24f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,10 @@ locals {
regex = "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$"
}
container_registry = {
name = substr(join("", compact([local.prefix_safe, "cr", local.suffix_safe])), 0, 63)
name_unique = substr(join("", compact([local.prefix_safe, "cr", local.suffix_unique_safe])), 0, 63)
name = substr(join("", compact([local.prefix_safe, "acr", local.suffix_safe])), 0, 63)
name_unique = substr(join("", compact([local.prefix_safe, "acr", local.suffix_unique_safe])), 0, 63)
dashes = false
slug = "cr"
slug = "acr"
min_length = 1
max_length = 63
scope = "resourceGroup"
Expand Down
2 changes: 1 addition & 1 deletion resourceDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
},
"regex": "^(?=.{1,63}$)[a-zA-Z0-9]+$",
"scope": "resourceGroup",
"slug": "cr",
"slug": "acr",
"dashes": false
},
{
Expand Down

0 comments on commit 60a24f6

Please sign in to comment.