Skip to content

Commit

Permalink
Merge branch 'pr-4258'
Browse files Browse the repository at this point in the history
* pr-4258:
  update docs for updated us-east AMIs
  Trivial change for AWS upgraded T2 instance type and AMI ami-5189a661
  • Loading branch information
catsby committed Dec 11, 2015
2 parents b26a85e + f0ceb7f commit eceb8c8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
18 changes: 9 additions & 9 deletions website/source/intro/getting-started/build.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ provider "aws" {
}
resource "aws_instance" "example" {
ami = "ami-408c7f28"
instance_type = "t1.micro"
ami = "ami-d05e75b8"
instance_type = "t2.micro"
}
```

Expand Down Expand Up @@ -95,7 +95,7 @@ Within the resource block itself is configuration for that
resource. This is dependent on each resource provider and
is fully documented within our
[providers reference](/docs/providers/index.html). For our EC2 instance, we specify
an AMI for Ubuntu, and request a "t1.micro" instance so we
an AMI for Ubuntu, and request a "t2.micro" instance so we
qualify under the free tier.

## Execution Plan
Expand All @@ -111,9 +111,9 @@ $ terraform plan
...
+ aws_instance.example
ami: "" => "ami-408c7f28"
ami: "" => "ami-d05e75b8"
availability_zone: "" => "<computed>"
instance_type: "" => "t1.micro"
instance_type: "" => "t2.micro"
key_name: "" => "<computed>"
private_dns: "" => "<computed>"
private_ip: "" => "<computed>"
Expand Down Expand Up @@ -148,8 +148,8 @@ since Terraform waits for the EC2 instance to become available.
```
$ terraform apply
aws_instance.example: Creating...
ami: "" => "ami-408c7f28"
instance_type: "" => "t1.micro"
ami: "" => "ami-d05e75b8"
instance_type: "" => "t2.micro"
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Expand All @@ -172,9 +172,9 @@ You can inspect the state using `terraform show`:
$ terraform show
aws_instance.example:
id = i-e60900cd
ami = ami-408c7f28
ami = ami-d05e75b8
availability_zone = us-east-1c
instance_type = t1.micro
instance_type = t2.micro
key_name =
private_dns = domU-12-31-39-12-38-AB.compute-1.internal
private_ip = 10.200.59.89
Expand Down
8 changes: 4 additions & 4 deletions website/source/intro/getting-started/change.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ resource in your configuration and change it to the following:

```
resource "aws_instance" "example" {
ami = "ami-aa7ab6c2"
instance_type = "t1.micro"
ami = "ami-8eb061e6"
instance_type = "t2.micro"
}
```

Expand All @@ -47,7 +47,7 @@ $ terraform plan
...
-/+ aws_instance.example
ami: "ami-408c7f28" => "ami-aa7ab6c2" (forces new resource)
ami: "ami-d05e75b8" => "ami-8eb061e6" (forces new resource)
availability_zone: "us-east-1c" => "<computed>"
key_name: "" => "<computed>"
private_dns: "domU-12-31-39-12-38-AB.compute-1.internal" => "<computed>"
Expand Down Expand Up @@ -79,7 +79,7 @@ the change.
$ terraform apply
aws_instance.example: Destroying...
aws_instance.example: Modifying...
ami: "ami-408c7f28" => "ami-aa7ab6c2"
ami: "ami-d05e75b8" => "ami-8eb061e6"
Apply complete! Resources: 0 added, 1 changed, 1 destroyed.
Expand Down
12 changes: 6 additions & 6 deletions website/source/intro/getting-started/dependencies.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ $ terraform plan
public_ip: "" => "<computed>"
+ aws_instance.example
ami: "" => "ami-aa7ab6c2"
ami: "" => "ami-8eb061e6"
availability_zone: "" => "<computed>"
instance_type: "" => "t1.micro"
instance_type: "" => "t2.micro"
key_name: "" => "<computed>"
private_dns: "" => "<computed>"
private_ip: "" => "<computed>"
Expand All @@ -90,8 +90,8 @@ following:

```
aws_instance.example: Creating...
ami: "" => "ami-aa7ab6c2"
instance_type: "" => "t1.micro"
ami: "" => "ami-8eb061e6"
instance_type: "" => "t2.micro"
aws_eip.ip: Creating...
instance: "" => "i-0e737b25"
Expand Down Expand Up @@ -144,8 +144,8 @@ created in parallel to everything else.

```
resource "aws_instance" "another" {
ami = "ami-aa7ab6c2"
instance_type = "t1.micro"
ami = "ami-8eb061e6"
instance_type = "t2.micro"
}
```

Expand Down
8 changes: 4 additions & 4 deletions website/source/intro/getting-started/provision.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ To define a provisioner, modify the resource block defining the

```
resource "aws_instance" "example" {
ami = "ami-aa7ab6c2"
instance_type = "t1.micro"
ami = "ami-8eb061e6"
instance_type = "t2.micro"
provisioner "local-exec" {
command = "echo ${aws_instance.example.public_ip} > file.txt"
Expand Down Expand Up @@ -61,8 +61,8 @@ then run `apply`:
```
$ terraform apply
aws_instance.example: Creating...
ami: "" => "ami-aa7ab6c2"
instance_type: "" => "t1.micro"
ami: "" => "ami-8eb061e6"
instance_type: "" => "t2.micro"
aws_eip.ip: Creating...
instance: "" => "i-213f350a"
Expand Down
6 changes: 3 additions & 3 deletions website/source/intro/getting-started/variables.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ support for the "us-west-2" region as well:
```
variable "amis" {
default = {
us-east-1 = "ami-aa7ab6c2"
us-west-2 = "ami-23f78e13"
us-east-1 = "ami-8eb061e6"
us-west-2 = "ami-ef5e24df"
}
}
```
Expand All @@ -137,7 +137,7 @@ Then, replace the "aws\_instance" with the following:
```
resource "aws_instance" "example" {
ami = "${lookup(var.amis, var.region)}"
instance_type = "t1.micro"
instance_type = "t2.micro"
}
```

Expand Down

0 comments on commit eceb8c8

Please sign in to comment.