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
Can't deploy MySQL 5.7 Aurora clusters InvalidParameterCombination: Cannot find version 5.7.mysql_aurora.2.03.2 for aurora #10585
Comments
So what it looks like is somehow it's setting the engine to Digging through the code now to try and figure out why but I have never looked at a terraform provider before so this is slow going. :)
|
Ok, so adding:
to the |
Bump..
Bump.. just hit this as well.. any timeline for a fix? |
I think this is the code where Terraform reads the engine/engine version, which is done entirely on the basis of the supplied attributes, not the You do have access to an RDS client (
Not to say it can't be done, but it's probably not an easy patch. I’ve just run into this problem, possibly from working the same example that @bhechinger was hitting (https://www.terraform.io/docs/providers/aws/r/rds_cluster_instance.html). As a short-term fix, what about making this small change to the example: resource "aws_rds_cluster_instance" "cluster_instances" {
count = 2
identifier = "aurora-cluster-demo-${count.index}"
cluster_identifier = "${aws_rds_cluster.default.id}"
instance_class = "db.r4.large"
+ engine = "${aws_rds_cluster.engine}"
+ engine_version = "${aws_rds_cluster.engine_version}"
}
resource "aws_rds_cluster" "default" {
cluster_identifier = "aurora-cluster-demo"
availability_zones = ["us-west-2a", "us-west-2b", "us-west-2c"]
database_name = "mydb"
master_username = "foo"
master_password = "barbut8chars"
} It highlights that the two need to match, and anybody who copies and then adapts the example is going to get the correct behaviour. This would probably have helped me avoid making the same mistake, or at least caught it sooner. What do other people think? |
same problem here, doing what @alexwlchan says works. Would be great to have this working without the engine and engine_version in the aws_rds_cluster_instance resource |
…e cluster (#14037) If you try to create an RDS instance with a different engine/version to the cluster, you get an InvalidParameterCombination error from Terraform and no instances. Changing the behaviour so that instances inherit their config from the cluster is a big change. This patch just tweaks the documented examples, so if people copy/paste the example and change the engine/version of the cluster, it will still work correctly. It also highlights that the engine/version should match between the instance and the cluster. Relates to #10585
Hey @bhechinger |
Wow, it's been a while since I was even doing this! I will do some testing for you, however. It's the least I could do. |
@bhechinger We appreciate it a ton! Apologies for the delay in getting back to you; we're doing quite a lot of work in trying to better that experience (including my being in this dedicated role |
Just confirming that I've run into the same issue just now, so it still seems to be an issue running latest 3.x. |
I found a root cause. So in my case when I used these variables terraform successfully built Aurora RDS. |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/bhechinger/270be3f8d28fb0e37ec72af739164762
Expected Behavior
Terraform should have created the RDS instances
Actual Behavior
Terraform didn't create the RDS instances
Steps to Reproduce
terraform apply
Important Factoids
This is a clean account with nothing else in it. I had this issue in the past with 0.10 or 0.11 but I no longer remember the details. I'm very surprised this is still happening as that was well over a year ago.
This isn't some fancy example, either. This is pulled straight out of the terraform documentation and yet doesn't work.
I tried bumping the version up to
5.7.mysql_aurora.2.04.6
but that has the same exact behavior.The text was updated successfully, but these errors were encountered: