From 4349a168701f87614f623aaad880097f56ebc8db Mon Sep 17 00:00:00 2001 From: Christian Nunciato Date: Mon, 10 Jun 2024 11:49:47 -0700 Subject: [PATCH] Update RDS instance types to db.t3.micro (#1646) 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. --- aws-py-django-voting-app/__main__.py | 2 +- aws-py-dynamicresource/__main__.py | 6 +++--- aws-py-wordpress-fargate-rds/backend.py | 2 +- aws-ts-pern-voting-app/index.ts | 2 +- aws-ts-wordpress-fargate-rds/backend.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/aws-py-django-voting-app/__main__.py b/aws-py-django-voting-app/__main__.py index 2a001c81c..82b6c951e 100644 --- a/aws-py-django-voting-app/__main__.py +++ b/aws-py-django-voting-app/__main__.py @@ -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, diff --git a/aws-py-dynamicresource/__main__.py b/aws-py-dynamicresource/__main__.py index d4496512e..1a467e77c 100644 --- a/aws-py-dynamicresource/__main__.py +++ b/aws-py-dynamicresource/__main__.py @@ -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, @@ -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, @@ -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", diff --git a/aws-py-wordpress-fargate-rds/backend.py b/aws-py-wordpress-fargate-rds/backend.py index 949eb11dc..cd022c2b2 100644 --- a/aws-py-wordpress-fargate-rds/backend.py +++ b/aws-py-wordpress-fargate-rds/backend.py @@ -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): diff --git a/aws-ts-pern-voting-app/index.ts b/aws-ts-pern-voting-app/index.ts index 7c25a4cf9..2c61ce365 100644 --- a/aws-ts-pern-voting-app/index.ts +++ b/aws-ts-pern-voting-app/index.ts @@ -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, diff --git a/aws-ts-wordpress-fargate-rds/backend.ts b/aws-ts-wordpress-fargate-rds/backend.ts index 7384038de..ed9e7e293 100644 --- a/aws-ts-wordpress-fargate-rds/backend.ts +++ b/aws-ts-wordpress-fargate-rds/backend.ts @@ -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,