Public Cloud OVHcloud - Terraform - facturation au mois
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

Terraform - facturation au mois

Von
CatherineM42
Erstellungsdatum 2023-09-19 11:12:14 (edited on 2024-09-04 13:00:15) in Public Cloud OVHcloud

- Offre utilisée : https://www.ovhcloud.com/fr/public-cloud/

Bonjour à toutes et à tous,

J'utilise **public-cloud** :

Sur la documentation (https://help.ovhcloud.com/csm/fr-public-cloud-billing-change-rate?id=kb_article_view&sysparm_article=KB0050543) j'ai vu qu'il est possible d'utiliser l'attribut ovh-monthly-instance pour passer à une facturation au moi sans passer par l'interface.

Je souhaite faire la chose suivante avec la terraform.

variable "monthly_billing" {
type = bool
default = false
}

resource "openstack_compute_instance_v2" "server_1" {
metadata = {
ovh-monthly-instance = var.monthly_billing ? 1 : 0
}
}

C'est bien la valeur à 1 de la metadata ovh-monthly-instance qui active la facturation au mois.
Si la valeur est à zéro la facturation est à l'heure ?

J'ai bien conscience que si je passe de 1 à 0 ceci ne va pas passer d'une facturation au mois vers une facturation à l'heure.

Merci.