Create your first Elasticache cluster


1954 students completed the lab in ~36m

Total available time: 1h:0m

1022 students rated this lab!

Learn how to create and manage a Memcached cluster using Amazon ElastiCache 

ElastiCache is a web service that makes it easy to deploy, operate, and scale a distributed in-memory cache environment in the cloud. You can choose from Memcached or Redis protocol-compliant cache engine software, and let ElastiCache perform software upgrades and patch management for you automatically.

Existing applications that use Memcached or Redis can use ElastiCache with almost no modification and, thanks to the ElastiCache Auto Discovery feature, they will identify all of the cluster nodes and connect to them, rather than having to maintain a list of available host names and port numbers.

This Lab experience will guide you during the creation, and the scale up and down operations, of your first Elasticache cluster.


May 14th, 2018 - Updated improved instruction clarity for connecting to the EC2 instance

Follow these steps to learn by building helpful cloud resources

Logging in to the Amazon Web Services Console

Your first step to start the Lab experience

Create a Cache Subnet Group

How to create a subnet group for the ElastiCache nodes

Create a Memcached cluster using AWS Elasticache

Launch your first cache cluster powered by Memcached and AWS ElastiCache

Create an EC2 instance with a key pair

Launch a new EC2 instance using the AWS Management Console's Launch Instance wizard with a SSH key pair for remote connection

Configure the Security Group for allowing inbound traffic

How to allow inbound traffic for a specific port.

Install ElastiCache Memcached extension for PHP

How to install the official AWS Memcached extension for PHP

Connect to ElastiCache using PHP

Your first connection to ElastiCache using the PHP extension

Destroy an ElastiCache cluster

How to delete a Memcached or Redis cluster