content/operate/redisinsight/install/install-on-aws.md
This tutorial shows you how to install Redis Insight on an AWS EC2 instance and manage ElastiCache Redis instances using Redis Insight. To complete this tutorial you must have access to the AWS Console and permissions to launch EC2 instances.
Next, launch an EC2 instance.
Next, verify that the EC2 instance has the required IAM permissions and can connect to ElastiCache Redis instances.
aws s3 ls. This should list all S3 buckets.
aws command cannot be found, make sure your EC2 instance is based of Amazon Linux.echo info | nc <redis host> 6379.Next, install Docker on the EC2 instance. Run the following commands:
sudo yum update -ysudo yum install -y dockersudo service docker startsudo usermod -a -G docker ec2-userdocker ps. You should see some output without having to run sudo.Finally, install Redis Insight using one of the options described below.
docker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest
/data path and then run the following command:docker run -d --name redisinsight -p 5540:5540 redis/redisinsight:latest -v redisinsight:/data
If the previous command returns a permission error, ensure that the user with ID = 1000 has the necessary permission to access the volume provided (redisinsight in the command above).
Find the IP Address of your EC2 instances and launch your browser at http://<EC2 IP Address>:5540. Accept the EULA and start using Redis Insight.
Redis Insight also provides a health check endpoint at http://<EC2 IP Address>:5540/api/health/ to monitor the health of the running container.
In this guide, we installed Redis Insight on an AWS EC2 instance running Docker. As a next step, you should add an ElastiCache Redis Instance and then run the memory analysis.