-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
RDS cluster instance resource doesn't work with aurora-postgres preview #1443
Comments
Hi @cwoerner This is being tracked upstream with AWS - aws/aws-sdk-go#1470 This isn't a Terraform issue right now Paul |
Hey @cwoerner As per a discussion between @stack72 and one of the Go SDK's member, this is a preview feature that may require your account to be whitelisted. As this is not related to Terraform, since Paul made the work to allow other engines for cluster, do you mind me closing this issue? Thanks! |
No, this is a terraform aws provider issue. The terraform aws provider RDS cluster resource does alow you to specify the engine, but the cluster instance resource does not. Consequently, you can create an empty cluster with engine "aurora-postgresql" but the creation of the related writer and reader replicas fail due to prameter mismatch errors. The reason being that terraform aws provider doesn't expose the engine argument on the instance resource as well, causing the aws api default value (aurora mysql) to be substituted at runtime, which fails. The patch I provided demonstrates a fix for the issue. I've tested with a whitelisted account capable of creating postresql aurora clusters in us-east-1 and it works perfectly with the patch, but fails per my report without it. |
To be clear, I've now created multiple postres aurora clusters in us-east-1 region using my patched local build of the terraform aws provider plugin. |
Oh you're right @cwoerner, misread this one (cluster vs instance) 😅 Do you think you could send a PR for that, along with an acceptance test, documentation update?feel free to implement it, will be happy to review it! :) |
Yeah, sure. My company (shameless plug - Quantcast) is pretty open source friendly, but I will have to get it reviewed internally first, since technically this is all work-related. Is a couple days to a week ok? |
It absolutely is! We're grateful for all the contributions we can get, and we understand that work takes time especially OSS work. Assuming no one else comes along as does it before you, in which case I hope the reference this issue so we don't have duplicate work 😄 |
@cwoerner Yup, would be glad to review it :) |
FYI, postgres aurora is now GA: |
This looks to be fixed in this merge: |
Indeed, this has been added both for RDS clusters and RDS instances. Since it is GA, I'm going to close this if you don't mind :) Happy Terraforming! |
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! |
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.Terraform v0.10.3-dev (a4d182f4e55e90765c12f182e4b14549df10adc1)
terraform-provider-aws 1.0.0 (dde16a0)
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
https://gist.github.com/cwoerner/ab70e1c89ea51e5017a30576c56f6dae
Panic Output
N/A
Expected Behavior
Create an aws aurora postgresql cluster with 3 instances corresponding to the aurora-postgresql engine, version 1.0.
Actual Behavior
The cluster was created with zero instances. An error was reported stating this during apply.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
I was able to produce a patch which fixes the issue for me. Using a custom-built version of the terraform aws provider plugin I was able to successfully create an aurora-postgres cluster with 3 instances as expected. Gist with patch below...
https://gist.github.com/cwoerner/021e1e7a8a0b05d590dcdf632a171c8e
After applying this patch, the aws_rds_cluster_instance resource supports an "engine" argument.
References
Nope
The text was updated successfully, but these errors were encountered: