What is the meaning of inbound source of default RDS security group

0 votes

When I create an RDS, it seems to have an inbound source by default.

For example, like port: 5432, IP: 221.142.31.25/32.

As I understand, It means that the security group allows requests from the IP range(221.142.31.25/32) to access the port(5432).

Somehow It seems to allow my local to access the RDS as well without any additional inbound source representing my local.

In contrast to my local, when I try to have access to the RDS from Lambda, I have had to add inbound source 0.0.0.0/0, otherwise, the Lambda has returned a timeout error.

My question is...

  1. What does the IP range(221.142.31.25/32) mean?

  2. How does it allow my local to access the RDS?

  3. Why does it deny Lambda but my local?


 

Apr 25, 2022 in AWS by Rahul
• 9,680 points
641 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The better architecture would be:

  • Configure the AWS Lambda function to connect to the VPC

  • The Lambda function uses the DNS Name of the Amazon RDS instance, which will resolve to a local IP address within the VPC

  • Add the CIDR range of the VPC (eg 192.168.0.0/16 or whatever it is) to the Security Group associated with the Amazon RDS instance. This will permit access from any resource within the VPC.

  • It appears that you already have an inbound rule on the security group permitting access from your laptop, which seems to have an IP address of 221.142.31.25. Thus, the CIDR range would be 221.142.31.25/32.

The result will be that Lambda talks directly with RDS within the VPC, while your laptop comes in via the Internet.

answered Apr 27, 2022 by Aditya
• 7,680 points

edited Mar 5

Related Questions In AWS

0 votes
1 answer

What is the meaning of def lambda_handler(event, context):

Hey @sradha,  def lambda_handler(event, context):  Here def is for ...READ MORE

answered Dec 27, 2018 in AWS by Nabarupa
14,173 views
0 votes
2 answers

What is the difference between VPC security group and EC2 security group?

EC2-Classic Security Group When the instance is launched, ...READ MORE

answered Feb 11, 2019 in AWS by Ramaya
4,470 views
0 votes
1 answer

What is the maximum storage capacity of a node in Redshift?

You can create a cluster using either ...READ MORE

answered Oct 26, 2018 in AWS by Archana
• 5,640 points
2,251 views
0 votes
1 answer

What is a DB Instance of Amazon RDS?

Hey @findingbugs, there are two question of ...READ MORE

answered Nov 19, 2018 in AWS by Priyaj
• 58,020 points
1,101 views
0 votes
1 answer

What is the benfits of using Elastic Load Balancer in VPC?

Hello, @Jino. Talking about the Load Balancer, it ...READ MORE

answered Nov 20, 2018 in AWS by Priyaj
• 58,020 points
1,136 views
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 58,020 points
10,310 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP