From the course: AWS for Developers: Deploy a WordPress Blog with AWS CDK v2

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Amazon RDS Database

Amazon RDS Database

- [Instructor] Let's talk about the database resource created for this project, which is arguably the most important resource that we create because it's going to contain our data. Looking here at line 20, we start with the creation of a secret that is going to be managed by AWS Secrets Manager. In this case, this is going to be the database administrator password. From there, we jump to line 24, where we actually create our database cluster. In this case, we're using the MySQL version 301 for our database. And then we also specify several settings, such as the instance class, in this case, it's going to be T3 MEDIUM. In this case, you can see that line 27 where it says BURSTABLE3 and InstanceSize.MEDIUM. Again, just like our file system, we want to make sure to place this component in a safe and secure location away from the internet, no public IP address whatsoever. And you can do so by specifying line 29 here and saying…

Contents