Go to the Users & Roles section from the OVH Administration panel and create a new User as Administrator
You can check it out this OVH section Go to the endpoint createToken and log in with the user created in the first step. Then specify:
- Validation (i.e: 1 day)
- Rights: Add all http methods available in the API (GET, POST, PUT, DELETE) and a wildcard (*) for the second field
Finally, click on
Create keys
.
We should use the following credentials to authenticate against the OVH API in the Terraform Provider:
application_key
application_secret
consumer_key
You can create a file .tfvars
filling the values with the following variables:
# my_vars.tfvars
ovh_project_id = "<public_cloud_project_id>"
ovh_region = "<region>"
ovh_api_application_key = "<application_key_obtained_from_step_3>"
ovh_api_application_secret = "<application_secret_from_step_3>"
ovh_api_consumer_key = "<consumer_key_from_step_3>"