CodexBloom - Programming Q&A Platform

Terraform 1.4.1 AWS RDS Instance Not Picking Up Parameter Group Changes

👀 Views: 209 💬 Answers: 1 📅 Created: 2025-07-31
terraform aws rds mysql HCL

I'm attempting to set up I'm optimizing some code but I'm maintaining legacy code that Hey everyone, I'm running into an issue that's driving me crazy. I'm working with an scenario where my AWS RDS instance is not reflecting the changes made to the associated parameter group through Terraform. I'm using Terraform version 1.4.1, and I've defined my RDS instance and parameter group like this: ```hcl resource "aws_db_parameter_group" "example" { name = "example-parameter-group" family = "mysql8.0" description = "Example parameter group" parameter { name = "max_connections" value = "200" } } resource "aws_db_instance" "example" { identifier = "example-instance" instance_class = "db.t3.micro" engine = "mysql" engine_version = "8.0" allocated_storage = 20 username = "admin" password = "password" db_subnet_group_name = aws_db_subnet_group.example.name vpc_security_group_ids = [aws_security_group.example.id] db_parameter_group_name = aws_db_parameter_group.example.name } ``` I initially created the RDS instance without the parameter group, then applied the group settings. However, after running `terraform apply`, the RDS instance is still showing the default parameter values instead of the ones specified in the parameter group. I’ve verified that the parameter group is created successfully and the `aws_db_instance` resource references it correctly. I tried manually modifying the parameter group in the AWS console to see if it would take effect, but even that did not cause the instance to update its parameters. I also checked the logs for the RDS instance, but there's no indication of any errors related to parameter application. Is there a step I'm missing, or is there a known scenario with Terraform not applying parameter group changes to existing RDS instances? Any help would be appreciated! Any help would be greatly appreciated! I'm coming from a different tech stack and learning Hcl. How would you solve this? I'm using Hcl latest in this project. What are your experiences with this? I'm coming from a different tech stack and learning Hcl. What are your experiences with this?