-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provider/ovh: new provider, resource ovh_domain_zone #14775
Conversation
Thanks for the work here - please can you enhance the PR with some documentation as well? Thanks Paul |
Hi, |
@yanndegat thoughts on this PR would be awesome :) |
hi @stack72. will do |
Closed as was moved to https://github.com/terraform-providers/terraform-provider-ovh/issues/3 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi,
after the pull request of @yanndegat i recreate my pull request to add this ressource to ovh provider
i'v written that simple plugin https://github.com/remijouannet/terraform-provider-ovh
with only one resource just to manipulate OVH domains,
so my PR include only one resource
however I don't know if the acceptance tests i wrote are enough or not,
i didn't write the terraform documentation yet as i don't know if my PR require more work or not
here is a little README:
howto
if you want to use the OVH API you have to generate:
you can generate all three on this page
https://eu.api.ovh.com/createToken/
the following rights are needed for this plugin
GET : /domain/zone/*
PUT : /domain/zone/*
POST : /domain/zone/*
DELETE : /domain/zone/*
GET : /me
provider "ovh" {
application_key = "azrzqrgqvvdsfgsfffgc"
application_secret = "aztfqsqfsdcsdqezrfdvcx"
consumer_key = "aergfvdsrgtfbvcretfgd"
}
resource "ovh_domain_zone_record" "test" {
zone = "testdemo.ovh"
subDomain = "test"
fieldType = "A"
ttl = "3600"
target = "0.0.0.0"
}
testacc
export OVH_APPLICATION_KEY="arqzergfazfeef"
export OVH_APPLICATION_SECRET="aertedytfghftyhytghbgfv"
export OVH_CONSUMER_KEY="tyfghjhuyghvbjhuytghbjygh"
export OVH_ZONE="testdemo.ovh"
then use the makefile : make testacc TEST=./builtin/providers/ovh