Step 1: Create an ElastiCache cache - Amazon ElastiCache
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Step 1: Create an ElastiCache cache

In this step you create an Amazon ElastiCache cache in the default Amazon Virtual Private Cloud in the us-east-1 region in your account using the Amazon CLI. For information on creating ElastiCache serverless cache using the ElastiCache console or API, see Creating a cluster in the ElastiCache for Memcached User Guide.

Amazon Web Services Management Console

Run the following Amazon CLI command to create a new Memcached cluster serverless cache in the default VPC in the us-east-1 region.

Linux

aws elasticache create-serverless-cache \ --serverless-cache-name serverlessCacheForLambda \ --region us-east-1 \ --engine memcached

Windows

aws elasticache create-serverless-cache ^ --serverless-cache-name serverlessCacheForLambda ^ --region us-east-1 ^ --engine memcached

Note that the value of the Status field is set to CREATING. It can take a few minutes for ElastiCache to finish creating your cluster.

To verify that ElastiCache has finished creating the cache, use the describe-serverless-caches command.

Linux

aws elasticache describe-serverless-caches \ --serverless-cache-name serverlessCacheforLambda \ --region us-east-1

Windows

aws elasticache describe-serverless-caches ^ --serverless-cache-name serverlessCacheforLambda ^ --region us-east-1

Copy the Endpoint Address shown in the output. You'll need this address when you create the deployment package for your Lambda function.

After creating the new cache, proceed to Step 2: Create a Lambda function

Next Step:

Step 2: Create a Lambda function