Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix resource name lengths in Azure attack techniques (closes #301) #302

Merged
merged 1 commit into from
Jan 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ provider "azurerm" {
}

locals {
resource_prefix = "stratus-red-team-vmcse" # stratus red team vm custom script extension
resource_prefix = "srt-vmcse" # stratus red team vm custom script extension
}

# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down Expand Up @@ -75,7 +75,7 @@ resource "azurerm_network_interface" "lab_nic" {
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #

resource "azurerm_windows_virtual_machine" "lab_windows_vm" {
name = "${local.resource_prefix}-vm-${random_string.lab_name.result}"
name = "srt-vm-vmcse" # at most 15 characters
resource_group_name = azurerm_resource_group.lab_environment.name
location = azurerm_resource_group.lab_environment.location
size = "Standard_F2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ provider "azurerm" {
}

locals {
resource_prefix = "stratus-red-team-vmrc" # stratus red team vm run commant
resource_prefix = "srt-vmrc" # stratus red team vm run commant
}

# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Expand Down Expand Up @@ -75,7 +75,7 @@ resource "azurerm_network_interface" "lab_nic" {
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #

resource "azurerm_windows_virtual_machine" "lab_windows_vm" {
name = "${local.resource_prefix}-vm-${random_string.lab_name.result}"
name = "srt-vm-vmrc"
resource_group_name = azurerm_resource_group.lab_environment.name
location = azurerm_resource_group.lab_environment.location
size = "Standard_F2"
Expand Down