Last active
October 24, 2019 17:28
-
-
Save yohanb/680b77d3becd3a089454affddbc997a1 to your computer and use it in GitHub Desktop.
Revisions
-
yohanb revised this gist
Oct 24, 2019 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,10 +3,6 @@ locals { prj = "rockets" env = "staging" suffix = "01234" } resource "azurerm_resource_group" "example" { -
yohanb revised this gist
Oct 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,6 @@ locals { resource "azurerm_resource_group" "example" { name = # Value on next line for readability regex("^[-\\w\\._\\(\\)]+$",substr("rg-${local.org}-${local.prj}-${local.env}-main-${local.suffix}", 90)) location = "eastus" } -
yohanb revised this gist
Oct 24, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ locals { } resource "azurerm_resource_group" "example" { name = # Value on next line for readability regex(local.naming.regex, substr("rg-${local.org}-${local.prj}-${local.env}-main-${local.suffix}", local.naming.max_length)) location = "eastus" } -
yohanb revised this gist
Oct 24, 2019 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,14 @@ locals { prj = "rockets" env = "staging" suffix = "01234" naming = { regex = "^[-\\w\\._\\(\\)]+$", max_length = 90 } } resource "azurerm_resource_group" "example" { name = #Value on next line for readability regex(local.naming.regex, substr("rg-${local.org}-${local.prj}-${local.env}-main-${local.suffix}", local.naming.max_length)) location = "eastus" } -
yohanb revised this gist
Oct 24, 2019 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ locals { suffix = "01234" } resource "azurerm_resource_group" "example" { name = #Value on next line for readability regex("^[-\\w\\._\\(\\)]+$",substr("rg-${local.org}-${local.prj}-${local.env}-main-${local.suffix}", 90)) location = "eastus" } -
yohanb created this gist
Oct 24, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ locals { org = "acme" prj = "rockets" env = "staging" suffix = "01234" } resource "azurerm_resource_group" "example" { name = regex("^[-\\w\\._\\(\\)]+$",substr("rg-${local.org}-${local.prj}-${local.env}-main-${local.suffix}", 90)) location = "eastus" }