-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Parameter engine_version ignored for aws_rds_cluster using engine aurora-postgresql #3557
Comments
@spommerening For aurora there is no option for selecting specific version of postgres. Thats why it is not working. |
The version of postgres on rds_cluster can be specified. You can change the version on create or on modify via console. the CLI create_db_cluster also seems to support the --engine-version parameter: the API docs also suggest this param is valid: I've run into this same issue as the OP trying to create clusters with 9.6.6. If I do not pass an engine_version to the aws_rds_cluster and aws_rds_cluster_instance resources, I get working builds on 9.6.3. However, if I try to use 9.6.6, my apply fails with this output: * module.gevans-test-terraform-aurora-cluster.aws_rds_cluster_instance.aurora_instance[0]: 1 error(s) occurred:
* aws_rds_cluster_instance.aurora_instance.0: InvalidParameterCombination: The engine version that you requested for your DB instance (9.6.6) does not match the engine version of your DB cluster (9.6.3).
status code: 400, request id: 33687814-56d6-4030-bf76-9063fddcbbf8 My plan that generated the error did show 9.6.6 as the engine_version for the cluster. This was tested with the 1.13.0 provider. module.gevans-test-terraform-aurora-cluster.aws_rds_cluster.main_aurora_cluster: Creating...
apply_immediately: "" => "true"
availability_zones.#: "" => "3"
availability_zones.2050015877: "" => "us-west-2c"
availability_zones.221770259: "" => "us-west-2b"
availability_zones.2487133097: "" => "us-west-2a"
backup_retention_period: "" => "1"
cluster_identifier: "" => "ge-product-ge-service-development"
cluster_identifier_prefix: "" => "<computed>"
cluster_members.#: "" => "<computed>"
cluster_resource_id: "" => "<computed>"
database_name: "" => "ge_test"
db_cluster_parameter_group_name: "" => "<computed>"
db_subnet_group_name: "" => "ge-product-ge-service-development_aurora_db_subnet_group"
endpoint: "" => "<computed>"
engine: "" => "aurora-postgresql"
engine_version: "" => "9.6.6"
.... |
This fix for not properly handling the |
This has been released in version 1.14.1 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
While trying to setup an Aurora PostgreSQL cluster it seems that the parameter
engine_version
is ignored. I was trying to setup a cluster with aurora-postgresql engine_version = "9.6.2" which is possible using aws_db_instance without further problems.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Output during create
Expected Behavior
I expect an RDS cluster postgresql 9.6.2 to be created.
Actual Behavior
An RDS cluster postgresql 9.6.3 was created:
Repeating
terraform plan
will endlessly rebuild the same cluster over and over again:The text was updated successfully, but these errors were encountered: