Skip to content

Commit c63ac08

Browse files
committed
module update
1 parent 1703e89 commit c63ac08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Local .terraform directories
22
**/.terraform/*
3+
.terraform.lock.hcl
34

45
# .tfstate files
56
*.tfstate

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "random_string" "unique" {
3434
}
3535

3636
resource "azurerm_storage_account" "storeacc" {
37-
name = format("sta%s%s", lower(replace(var.storage_account_name, "/[[:^alnum:]]/", "")), random_string.unique.result)
37+
name = substr("format("sta%s%s", lower(replace(var.storage_account_name, "/[[:^alnum:]]/", "")), random_string.unique.result)", 0, 24)
3838
resource_group_name = local.resource_group_name
3939
location = local.location
4040
account_kind = var.account_kind

0 commit comments

Comments
 (0)