RDS vs. EC2
Amazon RDS Costs
Amazon RDS Performance Insights
Which database service should I use?
Using Automation to Deploy AWS Databases
Data Lakes in AWS
The course is part of this learning path
This section of the AWS Certified Solutions Architect - Professional learning path introduces you to the AWS database services relevant to the SAP-C02 exam. We then understand the service options available and learn how to select and apply AWS database services to meet specific design scenarios relevant to the AWS Certified Solutions Architect - Professional exam.
Want more? Try a Lab Playground or do a Lab Challenge!
- Understand the various database services that can be used when building cloud solutions on AWS
- Learn how to build databases using Amazon RDS, DynamoDB, Redshift, DocumentDB, Keyspaces, and QLDB
- Learn how to create ElastiCache and Neptune clusters
- Understand which AWS database service to choose based on your requirements
- Discover how to use automation to deploy databases in AWS
- Learn about data lakes and how to build a data lake in AWS
Hello and welcome to this lecture, which is going to be a demonstration on how to create an Amazon ElastiCache cluster. So let's get straight into it. So I'm at the AWS management console, and you can find ElastiCache under the database category down here. So if we select on ElastiCache, we're then presented with this screen if you haven't got any ElastiCache clusters already, which I haven't.
So to get started, simply click on the get started now button. And now we're in the configuration page of creating our Amazon ElastiCache cluster. So the first option we have is to choose our cluster engine, which is either Redis or Memcached.
Now, if you remember back to the lecture we just covered, Redis generally offers a more robust set of features to that of Memcached, whereas Memcached is recognized for its simplicity and speed of performance. And for this demonstration, I'm just gonna stick with the Redis cluster engine. If you want to enable cluster mode, we can do so here through the tick box. With it enabled, we can have up to 90 shards per cluster. For this demonstration, I'm just going to leave that unchecked.
Now, if we go down to the Redis settings, we can enter our name here. Just put the name of demo. Same for the description. Then we have our engine version compatibility, which is essentially the version of Redis that you'll install on your nodes. Just leave that as the default. The port that Redis will use. This is the port that the node will accept connections from.
Here we have a parameter group, and much like RDS, this just contains configurational settings about your engine. So if you have a different parameter group that you'd like to use for your cluster, then you can select it here. I'm just gonna use the default.
Scroll down to the node type. If we have a look at these, now, these are all the different nodes that you can have within your cluster. So the different sizes offering different memory and network performance, and we have different instance families along the top here, depending on what your requirements are. So I'm just gonna leave that as the default.
You can then select the number of replicas that you'd like to use and also if you'd like to configure multi-availability zone, which is used for high availability, and also as an automatic failover should your primary node fail. For this demonstration, I'm going to uncheck multi-AZ.
Now if we scroll down to the advanced Redis settings, here we can create a subnet group. Now, this subnet group is essentially used to define where your nodes can reside. So let's create a new subnet group. So I'll just call this Subnet1. And the same for the description. And then we can select the VPC that we want to use for our ElastiCache cluster.
So let's just select the top one here, and then we can select which subnets that we want to include in our subnet group. So I'm just going to select two subnets. We can then select our availability zone placement. We can either have no preference, or if we have specific zones that we'd like to place these, to place our nodes in, then we can do so here. I'm gonna select no preference.
Down to security. Down here we can add any security groups which will control access to our clusters, and so you can add any security groups in that you need. If you want to apply encryption at rest, simply tick the box, and you can either use the default encryption key, which is managed by ElastiCache, or if you have your own CMK, then you can select it from here, for example.
So I have my own KMS key, which is my CMK. So if I wanted to, then I can select that own customer managed CMK. For this demonstration, I'm just going to select the default encryption key. And similarly, if you want encryption in transit, then you can do so by enabling the tick box there.
Now, if you want to import any data to your cluster from the creation, then you can select an S3 folder that might contain an RDS backup that will populate your cluster with data. And then we have our backups. If you want to enable automatic backups, simply tick the check box and then select the number of days for your retention period and if you have a backup window and what time that would be if you want one. I'm gonna select no preference.
And then finally, maintenance. If there's any maintenance to take place, you can specify a maintenance window, again with day and time and duration. For this demonstration, I'm just gonna select no preference, and you can either have a topic for any notifications with regards to your, with regards to any maintenance carried out. So you can select one of your existing SNS topics or disable notifications. Then once you're happy with the configuration, simply click create. As you can see, the status is creating, and that will just take a couple of minutes to run through.
Okay, so that took a few minutes to come up, but we can now see the status is available. And if we click on the name of the cluster, then we can see a number of different nodes that have been created. We have the primary and two replicas. If we look at the description, then we can see all of the information about this cluster. For example, the primary endpoint, the reader endpoint, the engine that it's running, the availability zones, how many nodes, etc, and also the security groups and parameter groups, et cetera. Basically all the configuration information that we went through in its creation. And that's it. And that's how you set up an ElastiCache cluster.
Danny has over 20 years of IT experience as a software developer, cloud engineer, and technical trainer. After attending a conference on cloud computing in 2009, he knew he wanted to build his career around what was still a very new, emerging technology at the time — and share this transformational knowledge with others. He has spoken to IT professional audiences at local, regional, and national user groups and conferences. He has delivered in-person classroom and virtual training, interactive webinars, and authored video training courses covering many different technologies, including Amazon Web Services. He currently has six active AWS certifications, including certifications at the Professional and Specialty level.