Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Use iac_tool - provider.tf is AUTO-GENERATED, just write the resource!
INSTANCE EXAMPLE (MUST use nested blocks, NOT flat attributes):
resource "ovh_cloud_project_instance" "vm" {
service_name = "<PROJECT_ID>"
region = "US-EAST-VA-1"
billing_period = "hourly"
name = "my-vm"
flavor {
flavor_id = "<FLAVOR_UUID>"
}
boot_from {
image_id = "<IMAGE_UUID>"
}
network {
public = true
}
# SSH key options (use ONE):
# Option 1: Reference existing SSH key by name
ssh_key {
name = "my-ssh-key" # Must exist in OVH first
}
# Option 2: Create new SSH key inline
# ssh_key_create {
# name = "my-new-key"
# public_key = "ssh-rsa AAAA..."
# }
}
SSH KEY IMPORTANT: Use ssh_key to reference existing key, or ssh_key_create to create new one inline. If unsure, query Context7 with topic='ovh_cloud_project_instance ssh_key'.
Other resources:ovh_cloud_project_kube, ovh_cloud_project_kube_nodepool, ovh_cloud_project_database
DO NOT write terraform{} or provider{} blocks - they are auto-generated!
CRITICAL RULES
Use UUID from 'id' field for flavor/image, NOT names!
Use --cloud-project <ID> NOT --project-id
Region is POSITIONAL in create commands: cloud instance create <REGION> ...
Use kube NOT kubernetes subcommand
Use --network.public for public IP (not --network <ID>)
DYNAMIC/RUNTIME DATA (versions, flavors, images)
Context7 docs do NOT contain runtime data. For dynamic values, use CLI:
K8s versions: For Terraform, omit version to use latest stable, or use 1.31, 1.32 (check cloud kube create --help for valid versions)
Regions: cloud_exec('ovh', 'cloud region list --cloud-project <ID> --json')
Always query flavors/images/regions BEFORE creating resources.
MANDATORY: ON ANY OVH ERROR OR FAILURE
YOU MUST use Context7 MCP to look up correct syntax BEFORE retrying. Choose the RIGHT library:
If iac_tool (Terraform) fails -- Use TERRAFORM docs:
mcp_context7_get_library_docs(context7CompatibleLibraryID='/ovh/terraform-provider-ovh', topic='ovh_cloud_project_instance')
Topic should be the resource type (e.g., 'ovh_cloud_project_instance', 'ovh_cloud_project_kube', 'ssh_key block')
If cloud_exec (CLI) fails -- Use CLI docs:
mcp_context7_get_library_docs(context7CompatibleLibraryID='/ovh/ovhcloud-cli', topic='cloud instance create')
Topic should be the CLI command (e.g., 'cloud instance create', 'cloud kube list')
Do NOT mix them up! Terraform errors need Terraform docs, CLI errors need CLI docs.