Skip to content
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

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

Open
5 tasks
jar-b opened this issue May 3, 2024 · 1 comment
Open
5 tasks

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

jar-b opened this issue May 3, 2024 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/dynamodb Issues and PRs that pertain to the dynamodb service.

Comments

@jar-b
Copy link
Member

jar-b commented May 3, 2024

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

  • Add on_demand_throughput block argument, containing max_read_request_units and max_write_request_units arguments.
  • Add the ability to configure the same options on global secondary indexes (ie. the same on_demand_throughput argument, but nested inside the global_secondary_index block).
  • Assess whether the import_table and replica blocks can incorporate on_demand_throughput_override configurations.
  • Add acceptance tests for both cases.
  • Update registry documentation.

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

  • aws_dynamodb_table

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

@jar-b jar-b added the enhancement Requests to existing resources that expand the functionality or scope. label May 3, 2024
Copy link

github-actions bot commented May 3, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/dynamodb Issues and PRs that pertain to the dynamodb service. label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/dynamodb Issues and PRs that pertain to the dynamodb service.
Projects
None yet
Development

No branches or pull requests

1 participant