Terraform provider for Naver Cloud Platform (also known as NCloud).
Simply download the release for your target platform, and place it into one of the following locations:
- On Windows, in the sub-path terraform.d/plugins beneath your user's "Application Data" directory.
- 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.
./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.
- Go 1.8 or higher
- dep for dependency management
- mmake to build this project
- github-release to make releases
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.
Inspiration:
MIT. See License.