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.76k stars 9.12k forks source link

[Enhancement]: `r/aws_dynamodb_table`: Support On-Demand Throughput #37256

Open jar-b opened 5 months ago

jar-b commented 5 months ago

Description

The CreateTable and UpdateTable APIs now support configuration of on-demand throughput for tables and global secondary indexes. The aws_dynamodb_table resource should add corresponding arguments. Overrides can also be applied to replication

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

Potential Terraform Configuration

resource "aws_dynamodb_table" "example" {
  ### other configuration ###

  on_demand_throughput {
    max_read_request_units  = 1
    max_write_request_units = 1
  }

  global_secondary_index {
    on_demand_throughput {
      max_read_request_units  = 2
      max_write_request_units = 2
    }
  }
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

nirajvbhatt commented 1 week ago

We need this feature asap. Any insights into when will this be prioritised?

anthonymag commented 3 days ago

Worth noting this is in AWS's Cloud Control provider, as an alternative in the meantime: https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/dynamodb_table#on_demand_throughput