To create a Redis cache cluster using the AWS management console
Create a subnet group
To create a cluster in an Amazon VPC, you must specify a cache subnet group. ElastiCache Use this cache subnet group to select a subnet and an IP address within this subnet to relate to your cache node.
Create a security group
Use Amazon VPC security groups to control access to your cache cluster.
Create a parameter group
To create a Redis cache cluster using the AWS management console
Select the Redis engine
Specify cluster details
Configure Advanced Settings
View and start
Modifying a ElastiCache cache cluster
Connecting to a cluster node
To find an endpoint using the AWS Management Console
Click the number of nodes that the cluster has
Finding endpoints using the AWS CLI
$ AWS ElastiCache Describe-cache-clusters--cache-cluster-ID my-cache--show-cache-node-Info
Connect to a Redis cluster
Connect to a redis cluster using redis-cli
Installing GCC
sudo Yum Install GCC
Download the Compile REDIS-CLI utility
wget http://download.redis.io/redis-stable.tar.gztar xvzf redis-stable. Tar . gz$ CD Redis-make&& make install
Connect to a Redis cluster
6379
You are now connected to the cluster and can run Redis commands. The following is an example.
" Hello " // Set Key "A" with a string value and no expiration ok> get a // Get value for key "a" " Hello " > Get B // Get value for key ' B ' results in Miss (nil) > Quit // Exit from Redis-cli
Create a cache subnet group using the AWS CLI
$ AWS ElastiCache create-cache-subnet-Group --cache-subnet-group-name Mycachesubnetgroup "testing"--subnet-ids subnet-53df9c3a
AWS ElastiCache Using Notes