Skip to content

Commit

Permalink
Update RDS instance types to db.t3.micro (#1646)
Browse files Browse the repository at this point in the history
Noticed the Wordpress + Fargate example was failing because
`db.t2.micro` [is
deprecated](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#Concepts.DBInstanceClass.Support).
This fixes things up.
  • Loading branch information
cnunciato committed Jun 10, 2024
1 parent bb6beb4 commit 4349a16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aws-py-django-voting-app/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
engine="mysql",
username=sql_admin_name,
password=sql_admin_password,
instance_class="db.t2.micro",
instance_class="db.t3.micro",
allocated_storage=20,
skip_final_snapshot=True,
publicly_accessible=True,
Expand Down
6 changes: 3 additions & 3 deletions aws-py-dynamicresource/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
],
vpc_id=app_vpc.id)

# Associating our gateway with our VPC to allow the MySQL database to communicate
# Associating our gateway with our VPC to allow the MySQL database to communicate
# with the internet
app_routetable_association = aws.ec2.MainRouteTableAssociation("app_routetable_association",
route_table_id=app_routetable.id,
Expand Down Expand Up @@ -76,7 +76,7 @@
engine="mysql",
username=admin_name,
password=admin_password,
instance_class="db.t2.micro",
instance_class="db.t3.micro",
allocated_storage=20,
skip_final_snapshot=True,
publicly_accessible=True,
Expand All @@ -94,7 +94,7 @@
name="votes-database",
opts=pulumi.ResourceOptions(provider=mysql_provider))

# Creating a user which will be used to manage MySQL tables
# Creating a user which will be used to manage MySQL tables
mysql_user = mysql.User("mysql-standard-user",
user=user_name,
host="example.com",
Expand Down
2 changes: 1 addition & 1 deletion aws-py-wordpress-fargate-rds/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self,
allocated_storage=20,
engine='mysql',
engine_version='5.7',
instance_class='db.t2.micro',
instance_class='db.t3.micro',
storage_type='gp2',
skip_final_snapshot=True,
publicly_accessible=False):
Expand Down
2 changes: 1 addition & 1 deletion aws-ts-pern-voting-app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const postgresqlRdsServer = new aws.rds.Instance("postgresql-rds-server", {
engine: "postgres",
username: sqlAdminName,
password: sqlAdminPassword,
instanceClass: "db.t2.micro",
instanceClass: "db.t3.micro",
allocatedStorage: 20,
skipFinalSnapshot: true,
publiclyAccessible: true,
Expand Down
2 changes: 1 addition & 1 deletion aws-ts-wordpress-fargate-rds/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Db extends pulumi.ComponentResource {
allocatedStorage: 20,
engine: "mysql",
engineVersion: "5.7",
instanceClass: "db.t2.micro",
instanceClass: "db.t3.micro",
storageType: "gp2",
skipFinalSnapshot: true,
publiclyAccessible: false,
Expand Down

0 comments on commit 4349a16

Please sign in to comment.