Step 1: Create a cache
The cache you're about to launch will be live, and not running in a sandbox. You incur the standard ElastiCache usage fees for the
cache until it is deleted. The total charges are minimal (typically less than a dollar) if you complete the exercise described
here in one sitting and delete the cache when you are finished. For more information about ElastiCache usage rates,
see Amazon ElastiCache
Create a serverless cache
Amazon Web Services Management Console
To create a new cache using the ElastiCache console:
Sign in to the Amazon Web Services Management Console and open the ElastiCache console at https://console.amazonaws.cn/elasticache/
. In the navigation pane on the left side of the console, choose Memcached Caches.
On the right side of the console, choose Create Memcached cache.
In the Cache settings enter a Name. You can optionally enter a description for the cache.
Leave the default settings selected.
Click Create to create the cache.
Once the cache is in "ACTIVE" status, you can begin writing and reading data to the cache.
To create a new cache using the Amazon CLI
The following Amazon CLI example creates a new cache using create-serverless-cache.
Linux
aws elasticache create-serverless-cache \ --serverless-cache-name CacheName \ --engine memcached
Windows
aws elasticache create-serverless-cache ^ --serverless-cache-name CacheName ^ --engine memcached
Note that the value of the Status field is set to CREATING
.
To verify that ElastiCache has finished creating the cache, use the describe-serverless-caches
command.
Linux
aws elasticache describe-serverless-caches --serverless-cache-name CacheName
Windows
aws elasticache describe-serverless-caches --serverless-cache-name CacheName
After creating the new cache, proceed to Step 2: Read and write data to the cache.