Skip to content

Commit

Permalink
feature #6 - update alb
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 16, 2022
1 parent 558934c commit ecb1728
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions terraform/dynamodb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,32 @@ resource "aws_dynamodb_table" "exchange-rate" {
type = "S"
}
}

resource "aws_dynamodb_table" "product" {
name = "Product"
billing_mode = "PAY_PER_REQUEST"
hash_key = "category"
range_key = "id"

attribute {
name = "category"
type = "S"
}

attribute {
name = "id"
type = "S"
}

attribute {
name = "baseCurrency"
type = "S"
}

global_secondary_index {
name = "CategoryBaseCurrencyIndex"
hash_key = "category"
range_key = "baseCurrency"
projection_type = "ALL"
}
}

0 comments on commit ecb1728

Please sign in to comment.