Skip to content

Commit cbd3e4c

Browse files
authored
Techxchange updates (#4)
* inlines resource group creation * cleanup * bumps provider versions * inlines resource group creation * inlines resource group creation * inlines resource group creation * updates deprecated argument * bumps providers
1 parent 8cc239a commit cbd3e4c

15 files changed

Lines changed: 315 additions & 210 deletions

.gitignore

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
*/certs/*
22
*.tfstate
33
*.tfstate.backup
4-
*/*.env
5-
.terraform.lock.hcl
4+
.terraform/
65
terraform.tfvars
76
variables.hcl
87
*.pem
9-
/old*
10-
.vagrant/
11-
aws.env/us-east/.terraform/
12-
.terraform
13-
examples/
14-
Vagrantfile
15-
ignore*
16-
nomad.token
17-
certs/
18-
19-
node_modules/

infrastructure/.terraform.lock.hcl

Lines changed: 122 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/azure-blob-storage.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Storage Account for workshop data
44
resource "azurerm_storage_account" "workshop_storage" {
55
name = random_string.storage_account_suffix.result
6-
resource_group_name = data.azurerm_resource_group.ai_dev.name
6+
resource_group_name = azurerm_resource_group.main.name
77
location = var.azure_location
88
account_tier = "Standard"
99
account_replication_type = "LRS"
@@ -28,32 +28,32 @@ resource "random_string" "storage_account_suffix" {
2828
# Storage containers for different data types
2929
resource "azurerm_storage_container" "uploads" {
3030
name = "uploads"
31-
storage_account_name = azurerm_storage_account.workshop_storage.name
31+
storage_account_id = azurerm_storage_account.workshop_storage.id
3232
container_access_type = "blob"
3333
}
3434

3535
resource "azurerm_storage_container" "processed" {
3636
name = "processed"
37-
storage_account_name = azurerm_storage_account.workshop_storage.name
37+
storage_account_id = azurerm_storage_account.workshop_storage.id
3838
container_access_type = "blob"
3939
}
4040

4141
resource "azurerm_storage_container" "knowledge_base" {
4242
name = "knowledge-base"
43-
storage_account_name = azurerm_storage_account.workshop_storage.name
43+
storage_account_id = azurerm_storage_account.workshop_storage.id
4444
container_access_type = "blob"
4545
}
4646

4747
resource "azurerm_storage_container" "nomad_data" {
4848
name = "nomad-data"
49-
storage_account_name = azurerm_storage_account.workshop_storage.name
49+
storage_account_id = azurerm_storage_account.workshop_storage.id
5050
container_access_type = "blob"
5151
}
5252

5353
# User-assigned managed identity for secure storage access
5454
resource "azurerm_user_assigned_identity" "workshop_storage_identity" {
5555
name = "${local.prefix}-workshop-storage-identity"
56-
resource_group_name = data.azurerm_resource_group.ai_dev.name
56+
resource_group_name = azurerm_resource_group.main.name
5757
location = var.azure_location
5858
}
5959

@@ -69,4 +69,4 @@ resource "azurerm_role_assignment" "storage_account_contributor" {
6969
scope = azurerm_storage_account.workshop_storage.id
7070
role_definition_name = "Storage Account Contributor"
7171
principal_id = azurerm_user_assigned_identity.workshop_storage_identity.principal_id
72-
}
72+
}

infrastructure/azure-dependencies/az-resource-group.tf

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)