{"id":21973341,"url":"https://github.com/sattyagrah/awsserverlessredisnodejs","last_synced_at":"2026-04-12T00:46:39.957Z","repository":{"id":216824593,"uuid":"742448599","full_name":"sattyagrah/AWSServerlessRedisNodeJs","owner":"sattyagrah","description":"Elasticache Redis (serverless) with NodeJs in Amazon Linux 2023","archived":false,"fork":false,"pushed_at":"2024-08-18T20:46:05.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T23:24:58.824Z","etag":null,"topics":["aws","aws-cloudformation","aws-ec2","cloudformation","elasticache","redis","serverless","yaml"],"latest_commit_sha":null,"homepage":"https://aws.amazon.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sattyagrah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T13:59:31.000Z","updated_at":"2024-08-18T20:43:13.000Z","dependencies_parsed_at":"2024-01-13T03:58:45.606Z","dependency_job_id":"722c3316-30ef-4961-8003-85984ad49ccd","html_url":"https://github.com/sattyagrah/AWSServerlessRedisNodeJs","commit_stats":null,"previous_names":["mrsatya21/serverless-elasticache-redis-with-nodejs","sattyagrah/serverless-elasticache-redis-with-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sattyagrah/AWSServerlessRedisNodeJs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sattyagrah%2FAWSServerlessRedisNodeJs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sattyagrah%2FAWSServerlessRedisNodeJs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sattyagrah%2FAWSServerlessRedisNodeJs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sattyagrah%2FAWSServerlessRedisNodeJs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sattyagrah","download_url":"https://codeload.github.com/sattyagrah/AWSServerlessRedisNodeJs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sattyagrah%2FAWSServerlessRedisNodeJs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272475061,"owners_count":24940678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-cloudformation","aws-ec2","cloudformation","elasticache","redis","serverless","yaml"],"created_at":"2024-11-29T15:26:36.470Z","updated_at":"2026-04-12T00:46:39.907Z","avatar_url":"https://github.com/sattyagrah.png","language":null,"readme":"## Elasticache Redis *(serverless)* with NodeJs in *Amazon Linux 2023*\r\nThis is a Repository that contains YAML CloudFormation template to create an ElastiCache Redis *(serverless)* cluster with an *Amazon Linux 2023* EC2 instance and connect to the Redis cluster with 'NodeJS'. \r\n\r\n### Consideration/prerequisites \r\n\r\n- I have used the *Instance profile*, that I have in my account. I request everyone to change the *Instance profile* in the given template *(in line number [36](https://github.com/sattyagrah/AWSServerlessRedisNodeJs/blob/main/template.yaml#L36))*.\r\n\r\n- The *Instance profile*, that I have used was having *[AmazonSSMManagedInstanceCore](https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonSSMManagedInstanceCore.html)* policy attached to it, along with a custom policy that allows *DescribeStacks* and *ListStacks* policy. \r\n\r\n- I assume user(s) to have a little bit of knowledge about CloudFormation. \r\n\r\n- For LAZY people, use the template in branch **[WithInstanceProfile](https://github.com/sattyagrah/AWSServerlessRedisNodeJs/blob/WithInstanceProfile/README.md)**.\r\n\r\n- Select the *Security group* which is in default VPC. Otherwise, make sure your *Security group* is present in a VPC, which have at-least 3 subnet. \r\n\r\n- *Security group*, must be allowing Inbound/Outbound traffic to port 6379 *(default redis port)*. \r\n\r\n#### This is a CloudFormation YAML template. \r\n\r\nThis template can be used to create an ElastiCache Redis *(serverless)* cluster with an *Amazon Linux 2023* EC2 instance and connect to the Redis cluster with NodeJS.\r\n\r\n1. Download the template to your local machine from the GitHub repository.\r\n    \u003e ```sh\r\n    \u003e wget https://raw.githubusercontent.com/sattyagrah/AWSServerlessRedisNodeJs/main/template.yaml\r\n    \u003e ```\r\n\r\n2. Use the template to *[create the Stack](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stack.html)* through AWS Console.\r\n\r\n3. This stack will create an EC2 instance with name `Ec2InstanceForRedisServerless` and an ElastiCache cluster `redisserverless`in the region in which you create the stack. \r\n\r\n4. After creating the stack *[connect to Ec2 instance `Ec2InstanceForRedisServerless`](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-linux-inst-ssh.html#connect-linux-inst-sshClient)* and run the command -\r\n    \u003e ```sh \r\n    \u003e sudo /home/ec2-user/redis.sh\r\n    \u003e ```\r\n\r\n5. You will get output something like this - \r\n    \u003e ```\r\n    \u003e set ping dong:  OK\r\n    \u003e get ping:  dong\r\n    \u003e set ding pong:  OK\r\n    \u003e get ding:  pong\r\n    \u003e ```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsattyagrah%2Fawsserverlessredisnodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsattyagrah%2Fawsserverlessredisnodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsattyagrah%2Fawsserverlessredisnodejs/lists"}