order h100 gpu
This commit is contained in:
parent
bd2c431dc6
commit
78961a6349
1 changed files with 6 additions and 17 deletions
|
|
@ -8,19 +8,6 @@ resource "stackit_key_pair" "example_keypair" {
|
||||||
public_key = chomp(file("~/.ssh/id_rsa.pub"))
|
public_key = chomp(file("~/.ssh/id_rsa.pub"))
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "stackit_volume" "example_volume" {
|
|
||||||
project_id = var.stackit_project_id
|
|
||||||
size = 72
|
|
||||||
source = {
|
|
||||||
type = "image"
|
|
||||||
// ubuntu 24.04
|
|
||||||
id = "a2c127b2-b1b5-4aee-986f-41cd11b41279"
|
|
||||||
}
|
|
||||||
performance_class = "storage_premium_perf12"
|
|
||||||
name = "example-volume"
|
|
||||||
availability_zone = "eu01-m"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "stackit_network_interface" "example_nic" {
|
resource "stackit_network_interface" "example_nic" {
|
||||||
project_id = var.stackit_project_id
|
project_id = var.stackit_project_id
|
||||||
network_id = stackit_network.example_network.network_id
|
network_id = stackit_network.example_network.network_id
|
||||||
|
|
@ -31,12 +18,14 @@ resource "stackit_server" "example_server" {
|
||||||
project_id = var.stackit_project_id
|
project_id = var.stackit_project_id
|
||||||
name = "example-server"
|
name = "example-server"
|
||||||
boot_volume = {
|
boot_volume = {
|
||||||
source_type = "volume"
|
size = 64
|
||||||
source_id = stackit_volume.example_volume.volume_id
|
source_type = "image"
|
||||||
|
source_id = "a2c127b2-b1b5-4aee-986f-41cd11b41279" // ubuntu 24.04
|
||||||
|
performance_class = "storage_premium_perf12"
|
||||||
}
|
}
|
||||||
availability_zone = "eu01-m"
|
availability_zone = "eu01-2"
|
||||||
// change on the machine type does not affect the underlying volume
|
// change on the machine type does not affect the underlying volume
|
||||||
machine_type = "g1.4"
|
machine_type = "n3.56d.g4"
|
||||||
keypair_name = stackit_key_pair.example_keypair.name
|
keypair_name = stackit_key_pair.example_keypair.name
|
||||||
network_interfaces = [
|
network_interfaces = [
|
||||||
stackit_network_interface.example_nic.network_interface_id
|
stackit_network_interface.example_nic.network_interface_id
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue