kongou-ae
3/9/2015 - 2:57 PM

terraform.log.sh

$ terraform plan                                                                   
Refreshing Terraform state prior to plan...


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.web
    ami:                                           "" => "ami-18869819"
    associate_public_ip_address:                   "" => "1"
    availability_zone:                             "" => "<computed>"
    block_device.#:                                "" => "1"
    block_device.1044531585.delete_on_termination: "" => "1"
    block_device.1044531585.device_name:           "" => "/dev/xvdb"
    block_device.1044531585.encrypted:             "" => "<computed>"
    block_device.1044531585.snapshot_id:           "" => "<computed>"
    block_device.1044531585.virtual_name:          "" => ""
    block_device.1044531585.volume_size:           "" => "20"
    block_device.1044531585.volume_type:           "" => "gp2"
    instance_type:                                 "" => "t2.micro"
    key_name:                                      "" => "20150303"
    private_dns:                                   "" => "<computed>"
    private_ip:                                    "" => "<computed>"
    public_dns:                                    "" => "<computed>"
    public_ip:                                     "" => "<computed>"
    root_block_device.#:                           "" => "1"
    root_block_device.0.delete_on_termination:     "" => "1"
    root_block_device.0.device_name:               "" => "/dev/xvda"
    root_block_device.0.volume_size:               "" => "10"
    root_block_device.0.volume_type:               "" => "gp2"
    security_groups.#:                             "" => "2"
    security_groups.3857270386:                    "" => "sg-aa2686cf"
    security_groups.41879450:                      "" => "sg-1fcc2d7a"
    subnet_id:                                     "" => "subnet-5b47651d"
    tags.#:                                        "" => "1"
    tags.Name:                                     "" => "terraform"
    tenancy:                                       "" => "<computed>"


$ terraform apply                                                                     
aws_instance.web: Creating...
  ami:                                           "" => "ami-18869819"
  associate_public_ip_address:                   "" => "1"
  availability_zone:                             "" => "<computed>"
  block_device.#:                                "" => "1"
  block_device.1044531585.delete_on_termination: "" => "1"
  block_device.1044531585.device_name:           "" => "/dev/xvdb"
  block_device.1044531585.encrypted:             "" => "<computed>"
  block_device.1044531585.snapshot_id:           "" => "<computed>"
  block_device.1044531585.virtual_name:          "" => ""
  block_device.1044531585.volume_size:           "" => "20"
  block_device.1044531585.volume_type:           "" => "gp2"
  instance_type:                                 "" => "t2.micro"
  key_name:                                      "" => "20150303"
  private_dns:                                   "" => "<computed>"
  private_ip:                                    "" => "<computed>"
  public_dns:                                    "" => "<computed>"
  public_ip:                                     "" => "<computed>"
  root_block_device.#:                           "" => "1"
  root_block_device.0.delete_on_termination:     "" => "1"
  root_block_device.0.device_name:               "" => "/dev/xvda"
  root_block_device.0.volume_size:               "" => "10"
  root_block_device.0.volume_type:               "" => "gp2"
  security_groups.#:                             "" => "2"
  security_groups.3857270386:                    "" => "sg-aa2686cf"
  security_groups.41879450:                      "" => "sg-1fcc2d7a"
  subnet_id:                                     "" => "subnet-5b47651d"
  tags.#:                                        "" => "1"
  tags.Name:                                     "" => "terraform"
  tenancy:                                       "" => "<computed>"
aws_instance.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
$ terraform show                                                                      
aws_instance.web:
  id = i-e05da815
  ami = ami-18869819
  associate_public_ip_address = true
  availability_zone = ap-northeast-1c
  block_device.# = 1
  block_device.1044531585.delete_on_termination = true
  block_device.1044531585.device_name = /dev/xvdb
  block_device.1044531585.encrypted = false
  block_device.1044531585.snapshot_id = 
  block_device.1044531585.virtual_name = 
  block_device.1044531585.volume_size = 20
  block_device.1044531585.volume_type = gp2
  instance_type = t2.micro
  key_name = 20150303
  private_dns = ip-10-175-1-92.ap-northeast-1.compute.internal
  private_ip = 10.175.1.92
  public_dns = ec2-54-64-43-56.ap-northeast-1.compute.amazonaws.com
  public_ip = 54.64.43.56
  root_block_device.# = 1
  root_block_device.0.delete_on_termination = true
  root_block_device.0.device_name = /dev/xvda
  root_block_device.0.volume_size = 10
  root_block_device.0.volume_type = gp2
  security_groups.# = 2
  security_groups.3857270386 = sg-aa2686cf
  security_groups.41879450 = sg-1fcc2d7a
  subnet_id = subnet-5b47651d
  tenancy = default