Skip to content

Commit

Permalink
fix: provisionedthroughputexceededException dynamodb links table (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
billmetangmo authored Sep 1, 2024
1 parent cf9b9b9 commit de027ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ resource "aws_dynamodb_table" "Users" {
resource "aws_dynamodb_table" "Link_table" {
name = (terraform.workspace == "mtchoun-mouh-master") ? var.table_links : "${terraform.workspace}-${var.table_links}"
billing_mode = "PROVISIONED"
read_capacity = 1
billing_mode = "PAY_PER_REQUEST"
read_capacity = 3
write_capacity = 1
hash_key = "link"
Expand Down Expand Up @@ -300,7 +300,6 @@ resource "aws_s3_bucket_object" "example_file" {
module "cors" {
source = "squidfunk/api-gateway-enable-cors/aws"
version = "0.3.3"

api_id = aws_api_gateway_rest_api.api.id
api_resource_id = aws_api_gateway_resource.resource.id
}
Expand Down

0 comments on commit de027ea

Please sign in to comment.