Skip to content

Instantly share code, notes, and snippets.

@caius
Created April 24, 2018 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caius/189339f4e515a6f77b3250300f551478 to your computer and use it in GitHub Desktop.
Save caius/189339f4e515a6f77b3250300f551478 to your computer and use it in GitHub Desktop.
provider "triton" {
url = "https://cloudapi.dc1.triton.xxx.cloud"
account = "caius"
key_id = "xxx"
}
data "triton_image" "base-64-lts" {
name = "base-64-lts"
version = "17.4.0"
}
/*
↳ caius$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.triton_image.base-64-lts: Refreshing state...
Error: Error refreshing state: 1 error(s) occurred:
* data.triton_image.base-64-lts: 1 error(s) occurred:
* data.triton_image.base-64-lts: data.triton_image.base-64-lts: Error Creating Triton Compute Client: invalid data center in URL: failed to parse datacenter from 'https://cloudapi.dc1.triton.xxx.cloud'
*/
provider "triton" {
version = "~> 0.4.0"
url = "https://cloudapi.dc1.triton.xxx.cloud"
account = "caius"
key_id = "xxx"
}
data "triton_image" "base-64-lts" {
name = "base-64-lts"
version = "17.4.0"
}
/*
↳ caius$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.triton_image.base-64-lts: Refreshing state...
------------------------------------------------------------------------
No changes. Infrastructure is up-to-date.
This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment