RousselTMLEARNING

Cloud computing

Operating OVHcloud: Terraform, monitoring, security, costs and sovereignty

Operate OVHcloud in production: infrastructure as code with the ovh and openstack Terraform providers, Logs Data Platform and monitoring, security (anti-DDoS, KMS, backup), cost tracking, multi-region recovery plan and sovereignty requirements.

1. Infrastructure as code #

Terraform, the reference tool.

Example #

Terraform and OVHcloud
State can be stored in an S3-compatible Object Storage bucket.
terraform {
  required_providers {
    ovh       = { source = "ovh/ovh" }
    openstack = { source = "terraform-provider-openstack/openstack" }
  }
  backend "s3" {
    bucket = "etat-terraform"
    key    = "prod/terraform.tfstate"
    region = "gra"
    endpoints = { s3 = "https://s3.gra.io.cloud.ovh.net" }
    skip_credentials_validation = true
    skip_region_validation      = true
    skip_requesting_account_id  = true
  }
}

resource "ovh_cloud_project_kube" "prod" {
  service_name = var.projet
  name         = "prod"
  region       = "GRA11"
}

resource "openstack_compute_instance_v2" "web" {
  name        = "web-1"
  flavor_name = "b3-8"
  image_name  = "Ubuntu 24.04"
  key_pair    = "ma-cle"
  network { name = "prive" }
}

2. Monitoring and security #

Seeing and protecting.

Services #

NeedSolution
Centralized logsLogs Data Platform (Graylog, OpenSearch), OpenTelemetry-compatible
MetricsPrometheus and Grafana (on Kubernetes or instances), service metrics
DDoS protectionAnti-DDoS included on the infrastructure
Encryption keysOVHcloud KMS
BackupSnapshots, volume backups, Veeam or open source tools

3. Costs and sovereignty #

Controlling and reassuring.

Rules #

  • Track consumption per project in the control panel and through the billing API.
  • Monthly billing for permanent resources; delete what is no longer used.
  • Recovery plan: backups and images replicated in a second region.
  • Sensitive data: EU regions and SecNumCloud-qualified offerings if required by your regulatory constraints.
Good practice: The same OpenStack Terraform code works with other OpenStack providers: a real advantage for reversibility.

Related articles

Understanding OVHcloud: universes, regions, Public Cloud and tools

Discover OVHcloud, a European cloud provider: the Bare Metal, Hosted Private Cloud, Public Cloud (based on Op…

Identities and access on OVHcloud: account, IAM, OpenStack users and keys

Secure access to OVHcloud: two-factor authentication on the account, OVHcloud IAM (identities, policies), Ope…

OVHcloud Public Cloud networking: private networks, vRack, Gateway, Floating IP and Load Balancer

Design networking on OVHcloud Public Cloud: public network and OpenStack private networks, vRack, subnets and…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!