andrexus / terraform-provider-inwx Goto Github PK
View Code? Open in Web Editor NEWterraform provider for INWX
License: MIT License
terraform provider for INWX
License: MIT License
I really like this project and the idea behind it! I tried to set it up and noticed that currently supports username/password authentication only (using account.login
API method). It would be nice to support entering/computing the mobileTAN, too, for two factor authenticated accounts (using account.unlock
API method).
Other INWX API clients have some ways to support that already, see for example https://github.com/inwx/php-client/blob/master/INWX/Domrobot.php#L73 or https://github.com/halfdan/ruby-inwx-xmlrpc/blob/master/INWX/DomainRobot.rb#L27 both require the underlying TFA secret in addition to the password and compute the mobileTAN on the fly.
Unfortunately I'm not so competent in Go, else I would've submitted a PR...
Hi,
it's just a FYI.
I would appreciate it if this module can be used in terraform 0.13 directly without manually download it. I don't know the requirement for third-party modules yet.
NEW FEATURES:
Terraform now supports a decentralized namespace for providers, allowing for automatic installation of community providers from third-party namespaces in the public registry and from private registries. (More details will be added about this prior to release.)
https://github.com/hashicorp/terraform/blob/master/CHANGELOG.md
Running terraform apply -auto-approve -var 'inwx_tan=......'
I get the following error:
Failed to create INWX Record: (2200) Authentication error. Reason:
(Error_AccountUnlockRequired) You need to unlock your account with your mobile TAN.
I tried to enter the TAN as quickly as possible as soon as a new one was generated to avoid the TAN changing after 30 seconds, but still no luck.
The DNS record gets created within INWX, but it's not possible to execute terraform successfully... I tried to find the issue within the code without luck.
# terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ inwx_record.master
id: <computed>
domain: "example.com"
name: "foobar"
ttl: "600"
type: "A"
value: "127.0.0.1"
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
inwx_record.master: Creating...
domain: "" => "example.com"
name: "" => "foobar"
ttl: "" => "600"
type: "" => "A"
value: "" => "127.0.0.1"
Error: Error applying plan:
1 error(s) occurred:
* inwx_record.master: 1 error(s) occurred:
* inwx_record.master: 3 error(s) decoding:
* 'record[0].Prio' expected type 'int', got unconvertible type 'string'
* 'record[1].Prio' expected type 'int', got unconvertible type 'string'
* 'record[2].Prio' expected type 'int', got unconvertible type 'string'
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Are there any plans to submit this provider to https://github.com/terraform-providers? That would make it even easier to use since it can be automatically fetched by terraform init?
Looks like the provider is not compatible with the current Terraform version. It would be great if you could fix the problem and make a new release.
Error: Failed to instantiate provider "inwx" to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.