Skip to content

Latest commit

 

History

History
107 lines (73 loc) · 2.45 KB

Readme.md

File metadata and controls

107 lines (73 loc) · 2.45 KB

Terraform provider for NCloud

Terraform provider for Naver Cloud Platform (also known as NCloud).

Installation

Simply download the release for your target platform, and place it into one of the following locations:

  1. On Windows, in the sub-path terraform.d/plugins beneath your user's "Application Data" directory.
  2. On all other systems, in the sub-path .terraform.d/plugins in your user's home directory.

See https://www.terraform.io/docs/configuration/providers.html#third-party-plugins for more details.

Usage

./main.tf

provider "ncloud" {
  access_key = "$NCLOUD_ACCESS_KEY"
  secret_key = "$NCLOUD_SECRET_KEY"
  region     = "$NCLOUD_DEFAULT_REGION"
}

resource "ncloud_instance" "gameserver" {
  # coming zoon 
}

See Services.md for a detailed lists of available regions, zones, servers and images.

Development

Requirements

Setup

Fork this project, then clone your fork.

git clone [email protected]:[username]/terraform-provider-ncloud.git
cd terraform-provider-ncloud
git remote add upstream [email protected]:Wizcorp/terraform-provider-ncloud.git

Install dependencies, and build the project

dep ensure
mmake

See mmake help for more project-related commands.

Update the list of code for server types and images

# *nix, macOS
export NCLOUD_ACCESS_KEY=""
export NCLOUD_SECRET_KEY=""

# Windows
set-item env:NCLOUD_ACCESS_KEY=""
set-item env:NCLOUD_SECRET_KEY=""

mmake generate-services

This command will update the Service.md file. This file contains a list of relevant codes you will need to put in your Terraform configuration.

Release

# *nix, macOS
export GITHUB_TOKEN="..."

# Windows
set-item env:GITHUB_TOKEN="..."

git tag v1.2.3
mmake release

See https://help.github.com/articles/creating-an-access-token-for-command-line-use to learn how to create your token.

Acknowledgements

Inspiration:

License

MIT. See License.