Right now, I'm using the API key. This means I have to use 2.9.11 version of the terraform provider, because if I use the current version, there is something about permissions and my key no longer works. However, with 2.9.11, I can't get past this error. Also, is terraform really supported? I have yet to find a blog that produces anything that works, and still can't figure out how to use my ceph storage via terraform.
ESC[31m╷ESC[0mESC[0m
ESC[31m│ESC[0m ESC[0mESC[1mESC[31mError: ESC[0mESC[0mESC[1m400 Parameter verification failed.ESC[0m
ESC[31m│ESC[0m ESC[0m
ESC[31m│ESC[0m ESC[0mESC[0m with proxmox_vm_qemu.my-vm,
ESC[31m│ESC[0m ESC[0m on vm.tf line 25, in resource "proxmox_vm_qemu" "my-vm":
ESC[31m│ESC[0m ESC[0m 25: resource "proxmox_vm_qemu" "my-vm" ESC[4m{ESC[0mESC[0m
ESC[31m│ESC[0m ESC[0m
ESC[31m╵ESC[0mESC[0m
generated from my vm.tf
terraform {
required_providers {
proxmox = {
source = "telmate/proxmox"
version = "2.9.11"
}
}
}
provider "proxmox" {
# url is the hostname (FQDN if you have one) for the proxmox host you'd like to connect to to issue the commands. my proxmox host is 'p\
rox-1u'. Add /api2/json at the end for the API
pm_api_url = "http://proxmox-1:8006/api2/json"
# api token id is in the form of: @pam!
pm_api_token_id = "****"
# this is the full secret wrapped in quotes. don't worry, I've already deleted this from my proxmox cluster by the time you read this p\
ost
pm_api_token_secret = "****"
# leave tls_insecure set to true unless you have your proxmox SSL certificate situation fully sorted out (if you do, you will know)
pm_tls_insecure = true
pm_debug = true
}
resource "proxmox_vm_qemu" "my-vm" {
name = "my-vm"
target_node = "proxmox-1"
clone = "oracle-810-cloudinit-template"
}
ESC[31m╷ESC[0mESC[0m
ESC[31m│ESC[0m ESC[0mESC[1mESC[31mError: ESC[0mESC[0mESC[1m400 Parameter verification failed.ESC[0m
ESC[31m│ESC[0m ESC[0m
ESC[31m│ESC[0m ESC[0mESC[0m with proxmox_vm_qemu.my-vm,
ESC[31m│ESC[0m ESC[0m on vm.tf line 25, in resource "proxmox_vm_qemu" "my-vm":
ESC[31m│ESC[0m ESC[0m 25: resource "proxmox_vm_qemu" "my-vm" ESC[4m{ESC[0mESC[0m
ESC[31m│ESC[0m ESC[0m
ESC[31m╵ESC[0mESC[0m
generated from my vm.tf
terraform {
required_providers {
proxmox = {
source = "telmate/proxmox"
version = "2.9.11"
}
}
}
provider "proxmox" {
# url is the hostname (FQDN if you have one) for the proxmox host you'd like to connect to to issue the commands. my proxmox host is 'p\
rox-1u'. Add /api2/json at the end for the API
pm_api_url = "http://proxmox-1:8006/api2/json"
# api token id is in the form of: @pam!
pm_api_token_id = "****"
# this is the full secret wrapped in quotes. don't worry, I've already deleted this from my proxmox cluster by the time you read this p\
ost
pm_api_token_secret = "****"
# leave tls_insecure set to true unless you have your proxmox SSL certificate situation fully sorted out (if you do, you will know)
pm_tls_insecure = true
pm_debug = true
}
resource "proxmox_vm_qemu" "my-vm" {
name = "my-vm"
target_node = "proxmox-1"
clone = "oracle-810-cloudinit-template"
}
Last edited: