GithubHelp home page GithubHelp logo

hashicorp / terraform-provider-jdcloud Goto Github PK

View Code? Open in Web Editor NEW
9.0 15.0 14.0 42.99 MB

Terraform JDcloud provider. Please note: This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html

Home Page: https://registry.terraform.io

License: Mozilla Public License 2.0

Makefile 0.51% HCL 4.68% Go 92.39% Shell 0.66% HTML 1.77%
jdcloud terraform-provider terraform

terraform-provider-jdcloud's Introduction

Please note: This Terraform provider is archived, per our provider archiving process. What does this mean?

  1. The code repository and all commit history will still be available.
  2. Existing released binaries will remain available on the releases site.
  3. Issues and pull requests are not being monitored.
  4. New releases will not be published.

If anyone from the community or an interested third party is willing to maintain it, they can fork the repository and publish it to the Terraform Registry. If you are interested in maintaining this provider, please reach out to the Terraform Provider Development Program at [email protected].

Terraform Provider for JDCloud

Build Status

Requirements

  • Terraform 0.10+
  • Go 1.12(to build the provider plugin)

Using the provider

  • Prepare a folder for Terraform
mkdir terraform && cd terraform 
  • Prepare your jdcloud.tf. This is where Terraform begins
touch jdcloud.tf
terraform init

Terraform is now start working, it will manage your resources according to your jdcloud.tf We would recommend our users begin with some simple resource, say VPC and ElasticIP

How to write jdcloud.tf ? Check Here

Developing the Provider

Contributions and advices to this plugin is very welcomed. In order to get start with, you need to do the following steps.

1.Prepare Golang Environment

First you will need to have Golang1.12 installed on your machine. Besides, You will need to correctly set up $GOPATH, as well as adding $GOPATH/bin to your $PATH

2.Compile project

After you have modified the code you can compile this plugin by make build. Remember to format your code by using go fmt. If it works fine. Plugin will be in your $GOPATH/bin

$ make build
==> Checking that code complies with gofmt requirements...
go install

$ ls $GOPATH/bin | grep jdcloud
terraform-provider-jdcloud

3.Running Acceptance Test

Acceptance test can be an important part of developing process. Basically, it will first create a resource, validate its attributes and see if it works as expected. Update this resource if applied and eventually delete this resource. Acceptance tests are files in jdcloud with suffix _test.go. You can invoke an acceptance test by

make testacc

Note

  • Acceptance creates real resources, it will probably cost some money.
  • Process usually takes 20~30 minutes depends on your network condition.

Contact Us

Contact us JDCloud-Team [email protected]

License

Mozilla Public License 2.0

terraform-provider-jdcloud's People

Contributors

aicarmic avatar cgriggs01 avatar imjoey avatar kujing avatar lidaobing avatar liulangwa avatar qsis avatar radeksimko avatar remrain avatar xiaohanliang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-provider-jdcloud's Issues

known bugs

  • [Instance] Cannot assign secondary ips. After specifying secondary_ips and secondary_ip_count. These fileds will not be applied in the created instances, while no errors will be reported . Currently you can create an extra network_interface and attach it instead.

  • [Instance] Make instance_type and image_id optional. These two fields are indeed optional in SDK, try to make them optional in plugin

  • [Disk-Attachment] Can not attach multiple disks to a same instance concurrently. Attaching several disks to a same instance will lead to errors, usually they are 400 CONFLICT and 500 INTERNAL ERROR. Currently such problem is solved by adding if..else(Not yet merged). Indeed a lock may worth a try.

  • [RDS-Instance] Error message Error message doesn't correspond to real errors , modify them properly

  • connectionError Consider a case where err != nil and resp==nil, then resp.Error will result in a panic

No available provider "jdcloud" plugins are compatible with Terraform version 0.12.0

I just downloaded the terraform lastest version 0.12.0, which meets 0.10.0+

But when I ran terraform init, it shown that no available jdcloud plugins as:

$ terraform init

Initializing the backend...

Initializing provider plugins...
- Checking for available provider plugins...

No available provider "jdcloud" plugins are compatible with this Terraform version.

From time to time, new Terraform major releases can change the requirements for
plugins such that older plugins become incompatible.

Terraform checked all of the plugin versions matching the given constraint:
    (any version)

Unfortunately, none of the suitable versions are compatible with this version
of Terraform. If you have recently upgraded Terraform, it may be necessary to
move to a newer major release of this provider. Alternatively, if you are
attempting to upgrade the provider to a new major version you may need to
also upgrade Terraform to support the new version.

Consult the documentation for this provider for more information on
compatibility between provider versions and Terraform versions.


Error: no available version is compatible with this version of Terraform

Is there currently any specific version I have to use if I want to keep using jdcloud.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.