Skip to content

Instantly share code, notes, and snippets.

@MerlinDMC
Created February 4, 2015 12:08
Show Gist options
  • Save MerlinDMC/5bfd28ccd98eded278d9 to your computer and use it in GitHub Desktop.
Save MerlinDMC/5bfd28ccd98eded278d9 to your computer and use it in GitHub Desktop.
MerlinDMC@d4f9171e-1f3f-b305-aa91-b1c61e9d8736 ~/Desktop/terraform-test [12:06:10]
> $ /usr/local/bin/terraform apply
aws_instance.test: Creating...
ami: "" => "ami-00b11177"
associate_public_ip_address: "" => "1"
availability_zone: "" => "<computed>"
block_device.#: "" => "1"
block_device.3403969019.delete_on_termination: "" => "1"
block_device.3403969019.device_name: "" => "xvdb"
block_device.3403969019.encrypted: "" => "<computed>"
block_device.3403969019.snapshot_id: "" => "<computed>"
block_device.3403969019.virtual_name: "" => "ephemeral0"
block_device.3403969019.volume_size: "" => "<computed>"
block_device.3403969019.volume_type: "" => "<computed>"
instance_type: "" => "m3.medium"
key_name: "" => "sphonicprod"
private_dns: "" => "<computed>"
private_ip: "" => "<computed>"
public_dns: "" => "<computed>"
public_ip: "" => "<computed>"
security_groups.#: "" => "<computed>"
subnet_id: "" => "<computed>"
tags.#: "" => "1"
tags.Name: "" => "Test Kill Me!"
tenancy: "" => "<computed>"
aws_instance.test: Provisioning with 'remote-exec'...
aws_instance.test (remote-exec): Connecting to remote host via SSH...
aws_instance.test (remote-exec): Host: 54.216.165.132
aws_instance.test (remote-exec): User: ubuntu
aws_instance.test (remote-exec): Password: false
aws_instance.test (remote-exec): Private key: true
aws_instance.test (remote-exec): Connection error, will retry: dial tcp 54.216.165.132:22: connection refused
aws_instance.test (remote-exec): Connection error, will retry: dial tcp 54.216.165.132:22: connection refused
aws_instance.test (remote-exec): Connection error, will retry: dial tcp 54.216.165.132:22: connection refused
aws_instance.test (remote-exec): Connected! Executing scripts...
aws_instance.test (remote-exec): Linux ip-10-74-150-41 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
aws_instance.test: 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
MerlinDMC@d4f9171e-1f3f-b305-aa91-b1c61e9d8736 ~/Desktop/terraform-test [12:07:10]
> $ /usr/local/bin/terraform plan
Refreshing Terraform state prior to plan...
aws_instance.test: Refreshing state... (ID: i-77e55893)
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed.
Note: You didn't specify an "-out" parameter to save this plan, so when
"apply" is called, Terraform can't guarantee this is what will execute.
-/+ aws_instance.test
ami: "ami-00b11177" => "ami-00b11177"
associate_public_ip_address: "true" => "1"
availability_zone: "eu-west-1b" => "<computed>"
block_device.#: "1" => "1"
block_device.3403969019.delete_on_termination: "" => "1" (forces new resource)
block_device.3403969019.device_name: "" => "xvdb" (forces new resource)
block_device.3403969019.encrypted: "" => "<computed>" (forces new resource)
block_device.3403969019.snapshot_id: "" => "<computed>" (forces new resource)
block_device.3403969019.virtual_name: "" => "ephemeral0" (forces new resource)
block_device.3403969019.volume_size: "" => "<computed>" (forces new resource)
block_device.3403969019.volume_type: "" => "<computed>" (forces new resource)
instance_type: "m3.medium" => "m3.medium"
key_name: "sphonicprod" => "sphonicprod"
private_dns: "ip-10-74-150-41.eu-west-1.compute.internal" => "<computed>"
private_ip: "10.74.150.41" => "<computed>"
public_dns: "ec2-54-216-165-132.eu-west-1.compute.amazonaws.com" => "<computed>"
public_ip: "54.216.165.132" => "<computed>"
security_groups.#: "1" => "<computed>"
subnet_id: "" => "<computed>"
tags.#: "1" => "1"
tags.Name: "Test Kill Me!" => "Test Kill Me!"
tenancy: "default" => "<computed>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment