terraform-aws-modules / terraform-aws-rds-aurora

Terraform module to create AWS RDS Aurora resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/rds-aurora/aws
Apache License 2.0
382 stars 551 forks source link

Multi AZ #421

Closed devasivaram closed 6 months ago

devasivaram commented 6 months ago

Hi, I have been using this module for a long time, but now I have a requirement to create RDS Aurora Postgresql with Multi-AZ. I have tried a lot to make modifications or use another module. If possible could you please create an Multi AZ RDS Aurora Postgresql terraform code?

bryantbiggs commented 6 months ago

Aurora is multi-az by default https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html

devasivaram commented 6 months ago

But I can choose the multi az enable option while creating it from the console, but via Terraform creation when I check the configuration it shows multi az as no. Even I have tried to add 2 instances as well the configuration status of multi az shows no while created by Terraform, but from console, it will show Yes.

ahummel25 commented 6 months ago

@devasivaram @bryantbiggs It seems like the option to place additional instances of your Aurora cluster in separate AZs is not an option here. So Aurora itself might be Multi AZ compatible by default, but with this module, the cluster instances can only reside in a single AZ and cannot be scattered across AZs?

bryantbiggs commented 6 months ago

the cluster instances can only reside in a single AZ and cannot be scattered across AZs

Thats not true

ahummel25 commented 6 months ago

I stand corrected. All depends on how you configure the instances config. Works fine with more than one instance.

github-actions[bot] commented 5 months ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.