Comments (5)
The terraform plan output:
Terraform will perform the following actions:
# module.api_service.module.postgres.aws_db_parameter_group.default[0] must be replaced
+/- resource "aws_db_parameter_group" "default" {
~ arn = "arn:aws:rds:us-west-2:xxxxxxxxxx:pg:api-db-20220331153311430500000002" -> (known after apply)
~ family = "aurora-postgresql11" -> "aurora-postgresql12" # forces replacement
~ id = "api-db-20220331153311430500000002" -> (known after apply)
~ name = "api-db-20220331153311430500000002" -> (known after apply)
tags = {
"Name" = "api-db"
}
# (3 unchanged attributes hidden)
}
# module.api_service.module.postgres.aws_rds_cluster.primary[0] will be updated in-place
~ resource "aws_rds_cluster" "primary" {
~ allow_major_version_upgrade = false -> true
~ db_cluster_parameter_group_name = "api-db-20220331153311419900000001" -> (known after apply)
+ enable_global_write_forwarding = false
~ engine_version = "11.13" -> "12.9"
id = "api-db"
tags = {
"Name" = "api-db"
}
# (33 unchanged attributes hidden)
}
# module.api_service.module.postgres.aws_rds_cluster_instance.default[0] will be updated in-place
~ resource "aws_rds_cluster_instance" "default" {
+ apply_immediately = true
~ db_parameter_group_name = "api-db-20220331153311430500000002" -> (known after apply)
id = "api-db-1"
~ instance_class = "db.t3.large" -> "db.t3.medium"
~ preferred_maintenance_window = "wed:13:04-wed:13:34" -> "wed:03:00-wed:04:00"
tags = {
"Name" = "api-db"
}
# (24 unchanged attributes hidden)
}
# module.api_service.module.postgres.aws_rds_cluster_parameter_group.default[0] must be replaced
+/- resource "aws_rds_cluster_parameter_group" "default" {
~ arn = "arn:aws:rds:us-west-2:xxxxxxxxxxx:cluster-pg:api-db-20220331153311419900000001" -> (known after apply)
~ family = "aurora-postgresql11" -> "aurora-postgresql12" # forces replacement
~ id = "api-db-20220331153311419900000001" -> (known after apply)
~ name = "api-db-20220331153311419900000001" -> (known after apply)
tags = {
"Name" = "api-db"
}
# (3 unchanged attributes hidden)
}
After yes to applying the changes:
module.api_service.module.postgres.aws_db_parameter_group.default[0]: Creating...
module.api_service.module.postgres.aws_rds_cluster_parameter_group.default[0]: Creating...
module.api_service.module.postgres.aws_db_parameter_group.default[0]: Creation complete after 1s [id=api-db-20220331162335693200000001]
module.api_service.module.postgres.aws_rds_cluster_parameter_group.default[0]: Creation complete after 1s [id=api-db-20220331162335693200000002]
module.api_service.module.postgres.aws_rds_cluster.primary[0]: Modifying... [id=api-db]
And then the error:
Error: Failed to modify RDS Cluster (api-db): InvalidParameterCombination: The current DB instance parameter group api-db-20220331153311430500000002 is custom. You must explicitly specify a new DB instance parameter group, either default or custom, for the engine version upgrade.
from terraform-aws-rds-cluster.
@rosshettel what did you end up doing to get around this? Any solution you would expect to get implemented at the module layer?
from terraform-aws-rds-cluster.
@Gowiem This exception is thrown because the module doesn't pass a value to db_instance_parameter_group_name
argument in aws_rds_cluster resource. I've opened a PR aws/aws-cli#151 that fixes this issue.
from terraform-aws-rds-cluster.
@Gowiem did not end up getting around this unfortunately, had other priorities come up and so this got put in the backlog. honestly not sure what solution I'd expect since I'm still not exactly sure why this is failing. But maybe instead of using custom DB parameters it could just use the default ones? Seems like that might simplify things a bit
from terraform-aws-rds-cluster.
Seems related to this, which doesn't seem too promising: aws/aws-sdk#392
from terraform-aws-rds-cluster.
Related Issues (20)
- Dependency Dashboard
- Reiterate on BridgeCrew warnings
- Second destroy will fail if snapshot is not skipped due to snapshot conflict HOT 1
- Support serverless v2
- Support for missing storage variables
- Missing required db_cluster_instance_class variable when creating Multi A-Z RDS cluster
- Creating Postgres Multi A-Z RDS cluster running into error InvalidParameterValue: CreateDBInstance
- apply_method on cluster_parameters HOT 1
- Cross-region replication not working HOT 3
- Unable to set `performance_insights_enabled` to false HOT 1
- Allow point in time restoration using a specific datetime
- Cannot treat Security Group egress in the same way as we do with ingress
- Add option for RDS/Aurora Managed Master Passwords via Secrets Manager HOT 1
- Action of deleting serverlessv2_scaling_configuration has no effect
- Use an existing db cluster parameter group instead of creating new one
- network type parameter
- Implement rolling update for instances.
- enable_http_endpoint not working for serverlessv2 configurations
- CreateDBInstance can't be used to create a DB instance in a Multi-AZ DB cluster. Use CreateDBCluster instead.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-rds-cluster.