Articles → AWS → Elasticache in AWS

Elasticache in AWS






Purpose





Elasticache engines




  1. Redis
  2. Memcache

Steps of creating an elastic cache




  1. Enable port 6379 in the security group.
  2. Create an EC2 instance.
  3. Create an elasticache
  4. Install Redis agent on the EC2 instance
  5. Test the elasticache



Enable port 6379 in the security group




Picture showing adding a rule for port number 6379  in the security group

Click to Enlarge




Create an EC2 instance





Create an elasticache




Picture showing the ElasticCache in the search result

Click to Enlarge



Picture showing the elasticcache home screen in AWS console

Click to Enlarge



Picture showing selecting the Cluster engine as Redis

Click to Enlarge



Picture showing entering the redis settings

Click to Enlarge



Picture showing selecting the subnet

Click to Enlarge



Picture showing the Create button for creating the ElasticCache

Click to Enlarge



Picture showing the ElasticCache list page

Click to Enlarge


Install Redis agent on the EC2 instance






redis-cli -c -h myfirstesnode.lqatbt.ng.0001.use2.cache.amazonaws.com -p 6379




Picture showing the primary endpoint of the elasticcache

Click to Enlarge


Test the elasticache




set <keyname> <value>get <keyname>


Picture showing the output of elasticcache in AWS

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, November 9, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250