Skip to content

Commit

Permalink
Merge pull request #3787 from oscr/fix-rds-documentation
Browse files Browse the repository at this point in the history
Update RDS documentation to use instance type t2 instead of t1
  • Loading branch information
bflad authored Mar 14, 2018
2 parents b2e0bf5 + 8b76ac3 commit 9489773
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions website/docs/d/db_snapshot.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "aws_db_instance" "prod" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.6.17"
instance_class = "db.t1.micro"
instance_class = "db.t2.micro"
name = "mydb"
username = "foo"
password = "bar"
Expand All @@ -34,7 +34,7 @@ data "aws_db_snapshot" "latest_prod_snapshot" {
# Use the latest production snapshot to create a dev instance.
resource "aws_db_instance" "dev" {
instance_class = "db.t1.micro"
instance_class = "db.t2.micro"
name = "mydb-dev"
snapshot_identifier = "${data.aws_db_snapshot.latest_prod_snapshot.id}"
lifecycle {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/db_event_subscription.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.6.17"
instance_class = "db.t1.micro"
instance_class = "db.t2.micro"
name = "mydb"
username = "foo"
password = "bar"
Expand Down
14 changes: 9 additions & 5 deletions website/docs/r/db_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,24 @@ server reboots. See the AWS Docs on [RDS Maintenance][2] for more information.
the raw state as plain-text. [Read more about sensitive data in
state](/docs/state/sensitive-data.html).

## RDS Instance Class Types
Amazon RDS supports three types of instance classes: Standard, Memory Optimized,
and Burstable Performance. For more information please read the AWS RDS documentation
about [DB Instance Class Types](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)

## Example Usage

```hcl
resource "aws_db_instance" "default" {
allocated_storage = 10
storage_type = "gp2"
engine = "mysql"
engine_version = "5.6.17"
instance_class = "db.t1.micro"
engine_version = "5.7"
instance_class = "db.t2.micro"
name = "mydb"
username = "foo"
password = "bar"
db_subnet_group_name = "my_database_subnet_group"
parameter_group_name = "default.mysql5.6"
password = "foobarbaz"
parameter_group_name = "default.mysql5.7"
}
```

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/db_snapshot.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "aws_db_instance" "bar" {
allocated_storage = 10
engine = "MySQL"
engine_version = "5.6.21"
instance_class = "db.t1.micro"
instance_class = "db.t2.micro"
name = "baz"
password = "barbarbarbar"
username = "foo"
Expand Down

0 comments on commit 9489773

Please sign in to comment.