Created
June 15, 2016 01:11
-
-
Save mindscratch/19c36561c7cf80d1979b19cf4c4018dd to your computer and use it in GitHub Desktop.
terraform demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ terraform apply | |
var.do_token | |
Enter a value: <enter digital ocean token here> | |
digitalocean_droplet.web: Creating... | |
image: "" => "centos-7-2-x64" | |
ipv4_address: "" => "<computed>" | |
ipv4_address_private: "" => "<computed>" | |
ipv6_address: "" => "<computed>" | |
ipv6_address_private: "" => "<computed>" | |
locked: "" => "<computed>" | |
name: "" => "web-1" | |
region: "" => "nyc2" | |
size: "" => "512mb" | |
ssh_keys.#: "" => "1" | |
ssh_keys.0: "" => "1640372" | |
status: "" => "<computed>" | |
digitalocean_droplet.web: Still creating... (10s elapsed) | |
digitalocean_droplet.web: Still creating... (20s elapsed) | |
digitalocean_droplet.web: Still creating... (30s elapsed) | |
digitalocean_droplet.web: Creation complete | |
Apply complete! Resources: 1 added, 0 changed, 0 destroyed. | |
The state of your infrastructure has been saved to the path | |
below. This state is required to modify and destroy your | |
infrastructure, so keep it safe. To inspect the complete state | |
use the `terraform show` command. | |
State path: terraform.tfstate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure the DigitalOcean Provider | |
provider "digitalocean" { | |
token = "${var.do_token}" | |
} | |
resource "digitalocean_droplet" "web" { | |
image = "centos-7-2-x64" | |
name = "web-1" | |
region = "nyc2" | |
size = "512mb" | |
ssh_keys = ["1234"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "do_token" { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment