Skip to content
This repository was archived by the owner on Dec 9, 2020. It is now read-only.

Files

Latest commit

 

History

History
executable file
·
52 lines (38 loc) · 1.36 KB

index.html.markdown

File metadata and controls

executable file
·
52 lines (38 loc) · 1.36 KB
layout page_title sidebar_current description
jdcloud
Introduction
docs-jdcloud-index
This is an introduction to JDCloud plugin and help users setting up their credentials.

JDCloud

JDCloud provider helps managing resources on JDCloud. Before you start with this plugin, you have to provide a pair of access key and secret to identify yourself.

-> Navigation bar on the left gives you a brief mind on how to manage resources on JDCloud that is currently available.

Authentication

Credential consists of your key pairs and the region id, which is used for authentication. Currently you can set up your credential in two ways:

  • Simply write them in your configuration file
  • Set them as environment variables

Write them in your configuration file

For example, a credential can look like this. Place this at the beginning of jdcloud.tf

provider "jdcloud" {
  access_key = "your_access_key"
  secret_key = "your_secret_key"
  region     = "cn-north-1"
}

Set as environment variable

Or you can set them as environment variable via command line

$ export access_key="your_access_key"
$ export secret_key="your_secret_key"
$ export region="cn-north-1"

And leave the provider field blank in configuration file. Terraform will load them automatically.

provider "jdcloud" {

}