Skip to content

How do I temporarily stop using an IPv4 assigned to an AWS VPC?

0

I created an AWS RDS instance, and a VPC group was automatically created for it. This VPC comes with a public IPv4 address which incurs charges. The charges aren't much, but I'm still using the free tier for other AWS resources and would prefer to not spend money during non-development periods. I was able to temporarily stop the RDS instance, but the IPv4 still kept incurring charges.

I didn't see an option to temporarily stop the VPC. I thought about deleting the IPv4 address from the VPC in the hopes that I could regenerate a new one later, but apparently AWS requires all VPCs to have at least 1 IPv4.

  • please accept the answer if it was helpful

asked 2 years ago1.2K views

2 Answers
2

You can not disable IPv4 for RDS, but you can deploy RDS as a private. During RDS creation, select Public access - No

RDS doesn't assign a public IP address to the cluster. Only Amazon EC2 instances and other resources inside the VPC can connect to your cluster. Choose one or more VPC security groups that specify which resources can connect to the cluster.

Enter image description here

VPC itself can not be stopped, and it does not cost anything. IP addresses are assigned to network interfaces, which are attached to different servers/services, for example, EC2 or RDS

FYI, the free tier includes 750 hours of public IPv4 addresses per month for the first year after creating an AWS account.

https://aws.amazon.com/about-aws/whats-new/2024/02/aws-free-tier-750-hours-free-public-ipv4-addresses/?nc1=h_ls

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

-1

=>Steps to Disassociate and Release Elastic IP Address **Disassociate the Elastic IP from your RDS instance: ** =>Go to the Amazon RDS console. =>Choose Databases. =>Select your RDS instance. =>Under Connectivity & security, find Network & Security. =>Disassociate the Elastic IP.

Release the Elastic IP: Go to the Amazon EC2 console. Choose Elastic IPs under Network & Security. Select the Elastic IP address. Choose Actions > Release Elastic IP addresses.

Important Considerations Releasing an Elastic IP returns it to the Amazon pool and it cannot be re-associated later. Allocate a new Elastic IP if needed in the future. If the RDS instance is in a public subnet, it will lose its public IP without an EIP. Alternative Approach Stop your RDS instance when not in use: Prevents EIP charges. Use VPC endpoints: For required internet access without a public IP.

=>By following these steps, you can avoid charges for the public IPv4 address associated with your AWS VPC.

EXPERT

answered 2 years ago

  • Unfortunately you can not use EIP with RDS, regardless of what GenAI says.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.