Name of image

This commit is contained in:
Serge Logvinov
2022-06-14 23:34:29 +03:00
parent 3be75140ca
commit ced3058862
2 changed files with 11 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
data "azurerm_resource_group" "kubernetes" {
name = var.project
name = var.resource_group
}
resource "random_id" "images" {
@@ -31,7 +31,7 @@ resource "azurerm_shared_image" "talos" {
# specialized = true
identifier {
publisher = var.project
publisher = var.name
offer = "Talos-${lower(each.key)}"
sku = "1.0-dev"
}
@@ -61,7 +61,7 @@ resource "azurerm_storage_account" "images" {
}
resource "azurerm_storage_container" "images" {
name = lower(var.project)
name = lower(var.name)
storage_account_name = azurerm_storage_account.images.name
container_access_type = "private"
}

View File

@@ -4,8 +4,8 @@ variable "subscription_id" {
type = string
}
variable "project" {
description = "The project name"
variable "resource_group" {
description = "The existed resource group"
type = string
}
@@ -15,6 +15,12 @@ variable "regions" {
default = ["uksouth", "ukwest"]
}
variable "name" {
description = "The image name"
type = string
default = "talos"
}
variable "arch" {
description = "The Talos architecture list"
type = list(string)