Arukas Provider
NOTE: Arukas' beta service will end on July 31, 2017. After that, official service will be started (however, the release date is undecided). We plan to upgrade this provider after official service starts. Until that time, this provider will not be maintained.
The Arukas provider is used to manage Arukas resources.
Use the navigation to the left to read about the available resources.
For additional details please refer to Arukas documentation.
Example Usage
Here is an example that will setup the following:
- A container resource using the "NGINX" image
- Instance count is 1
- Memory size is 256Mbyte
- Expose tcp 80 port to the EndPoint
- Set environments variable with like "key1=value1"
Add the below to a file called arukas.tf
and run the terraform
command from the same directory:
provider "arukas" { token = "" secret = "" } resource "arukas_container" "foobar" { name = "terraform_for_arukas_test_foobar" image = "nginx:latest" instances = 1 memory = 256 ports = { protocol = "tcp" number = "80" } environments { key = "key1" value = "value1" } }
You'll need to provide your Arukas API token and secret, so that Terraform can connect. If you don't want to put credentials in your configuration file, you can leave them out:
provider "arukas" {}
...and instead set these environment variables:
-
ARUKAS_JSON_API_TOKEN
: Your Arukas API token -
ARUKAS_JSON_API_SECRET
: Your Arukas API secret
Argument Reference
The following arguments are supported:
-
token
- (Required) This is the Arukas API token. It must be provided, but it can also be sourced from theARUKAS_JSON_API_TOKEN
environment variable. -
secret
- (Required) This is the Arukas API secret. It must be provided, but it can also be sourced from theARUKAS_JSON_API_SECRET
environment variable. -
api_url
- (Optional) Override Arukas API Root URL. Also taken from theARUKAS_JSON_API_URL
environment variable if provided. -
trace
- (Optional) The flag of Arukas API trace log. Also taken from theARUKAS_DEBUG
environment variable if provided. -
timeout
- (Optional) Override Arukas API timeout seconds. Also taken from theARUKAS_TIMEOUT
environment variable if provided.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/arukas/index.html