hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.2k forks source link

[Enhancement]: update `aws_rds_cluster` to allow auto_pause when aurora engine_mode is `provisioned` #40258

Open luisrx7 opened 3 days ago

luisrx7 commented 3 days ago

Description

According to this AWS documentation, it is now possible to set up auto-pause for Aurora in provisioned mode. However, the provider's documentation contradicts this by stating that auto-pause can only be configured if the cluster is in serverless mode. Conversely, through the console, it is possible to configure auto-pause for a cluster in provisioned mode.

Affected Resource(s) and/or Data Source(s)

aws_rds_cluster

Potential Terraform Configuration

serverlessv2_scaling_configuration {
    max_capacity = 256.0
    min_capacity = 0
    auto_pause               = true
    seconds_until_auto_pause = 300
  }

References

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2-auto-pause.html#auto-pause-enabling-disabling

Would you like to implement a fix?

No

github-actions[bot] commented 3 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

fatbasstard commented 11 hours ago

Yes, want to enable autoscaling back to 0 with a specific SecondsUntilAutoPause. Need this