Skip to content

Commit

Permalink
Merge pull request hashicorp#4330 from hashicorp/docs-update-ami-type
Browse files Browse the repository at this point in the history
Update doc to use valid AMI and t2.micro instance types
  • Loading branch information
catsby committed Dec 15, 2015
2 parents 64bded6 + 35a69fd commit 294d59c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion website/source/docs/configuration/override.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ If you have a Terraform configuration `example.tf` with the contents:

```
resource "aws_instance" "web" {
ami = "ami-1234567"
ami = "ami-d05e75b8"
}
```

Expand Down
4 changes: 2 additions & 2 deletions website/source/docs/configuration/resources.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ A resource configuration looks like the following:

```
resource "aws_instance" "web" {
ami = "ami-123456"
instance_type = "m1.small"
ami = "ami-d05e75b8"
instance_type = "t2.micro"
}
```

Expand Down
6 changes: 3 additions & 3 deletions website/source/docs/modules/usage.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ For example:

```
resource "aws_instance" "client" {
ami = "ami-123456"
instance_type = "m1.small"
availability_zone = "${module.consul.server_availability_zone}"
ami = "ami-d05e75b8"
instance_type = "t2.micro"
availability_zone = "${module.consul.server_availability_zone}"
}
```

Expand Down
8 changes: 4 additions & 4 deletions website/source/docs/providers/aws/r/instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ and deleted. Instances also support [provisioning](/docs/provisioners/index.html
## Example Usage

```
# Create a new instance of the ami-1234 on an m1.small node
# with an AWS Tag naming it "HelloWorld"
# Create a new instance of the `ami-d05e75b8` (Ubuntu 14.04) on an
# t2.micro node with an AWS Tag naming it "HelloWorld"
resource "aws_instance" "web" {
ami = "ami-1234"
instance_type = "m1.small"
ami = "ami-d05e75b8"
instance_type = "t2.micro"
tags {
Name = "HelloWorld"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Provides a resource to create a new launch configuration, used for autoscaling g
```
resource "aws_launch_configuration" "as_conf" {
name = "web_config"
image_id = "ami-1234"
instance_type = "m1.small"
ami = "ami-d05e75b8"
instance_type = "t2.micro"
}
```

Expand All @@ -33,8 +33,8 @@ with `name_prefix`. Example:
```
resource "aws_launch_configuration" "as_conf" {
name_prefix = "terraform-lc-example-"
image_id = "ami-1234"
instance_type = "m1.small"
ami = "ami-d05e75b8"
instance_type = "t2.micro"
lifecycle {
create_before_destroy = true
Expand Down Expand Up @@ -66,8 +66,8 @@ for more information or how to launch [Spot Instances][3] with Terraform.

```
resource "aws_launch_configuration" "as_conf" {
image_id = "ami-1234"
instance_type = "m1.small"
ami = "ami-d05e75b8"
instance_type = "t2.micro"
spot_price = "0.001"
lifecycle {
create_before_destroy = true
Expand Down
4 changes: 2 additions & 2 deletions website/source/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@
<p>resource <span class="txt-spe">"aws_instance"</span> <span class="txt-str">"app"</span> {</p>
<p> count = <span class="txt-int">5</span></p>
<p> </p>
<p> ami = <span class="txt-str">"ami-043a5034"</span></p>
<p> instance_type = <span class="txt-str">"m1.small"</span></p>
<p> ami = <span class="txt-str">"ami-d05e75b8"</span></p>
<p> instance_type = <span class="txt-str">"t2.micro"</span></p>
<p>}</p>
</div>
</div>
Expand Down

0 comments on commit 294d59c

Please sign in to comment.