-
Notifications
You must be signed in to change notification settings - Fork 4
RDS network fix auto-drive #404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
closes #395 |
PR Type
Enhancement, Bug fix
Description
Updated RDS subnet group configuration for better modularity.
Added lifecycle rules to EC2 instances to ignore specific changes.
Replaced hardcoded subnet configurations with dynamic private subnets.
Removed VPC RDS module and one VPC for EC2 and RDS.
moved RDS instance to same private subnet as EC2 instances
Change RDS instance type for more resources
Changes walkthrough 📝
db.tf
Refactored RDS subnet and security group configurationsauto-drive/db.tf
db_subnet_group_nameto useaws_db_subnet_group.aws_db_subnet_groupresource for dynamic subnetconfiguration.
vpc_rdsmodule and adjusted dependencies accordingly.publicly_accessibletofalsefor enhanced security.main.tf
Added private subnet configuration to VPC moduleauto-drive/main.tf
vpcmodule to includeprivate_subnetsconfiguration.main.tf
Added lifecycle rules to EC2 instance resourcestemplates/terraform/aws/ec2/main.tf
ami,private_ip, andassociate_public_ip_address.aws_instanceandaws_instance.ignore_amiresources.