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.74k stars 9.1k forks source link

[Enhancement]: Support aws_keyspaces_table auto scaling settings #35490

Open yblondeau opened 7 months ago

yblondeau commented 7 months ago

Description

AWS Keyspaces scaling policies can be managed automatically but unfortunately this configuration is not directly possible with Terraform. As it seems possible to configure this using the AWS API, it would be great to support it directly in the AWS provider.

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

Potential Terraform Configuration

resource "aws_keyspaces_table" "example" {
  keyspace_name = aws_keyspaces_keyspace.example.name
  table_name    = "my_table"

  capacity_specification {
    throughput_mode = "AUTOMATIC"
    read_capacity_auto_scaling { 
        minimum_units = 5
        maximum_units = 10
        scaling_policy { 
            target_tracking_scaling_policy_configuration { 
                target_value       = 50
                scale_in_cooldown  = 60
                scale_out_cooldown = 60
            }
        }
    }

    write_capacity_auto_scaling { 
        minimum_units = 5
        maximum_units = 10
        scaling_policy { 
            target_tracking_scaling_policy_configuration { 
                target_value = 50
            }
        }
    }
  }
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 7 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue