diff --git a/.changeset/vast-tan-limpet.md b/.changeset/vast-tan-limpet.md index 32d89841..b58dd88c 100644 --- a/.changeset/vast-tan-limpet.md +++ b/.changeset/vast-tan-limpet.md @@ -5,4 +5,3 @@ chore(deps): bump boto3 from 1.28.35 to 1.28.37 - diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 757fe380..b5e30d39 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,7 @@ { - "recommendations": ["samuelcolvin.jinjahtml", "mrmlnc.vscode-postcss-sorting"] + "recommendations": [ + "samuelcolvin.jinjahtml", + "mrmlnc.vscode-postcss-sorting", + "hashicorp.terraform" + ] } diff --git a/terraform/api-status-db.tf b/terraform/api-status-db.tf new file mode 100644 index 00000000..a8a566fa --- /dev/null +++ b/terraform/api-status-db.tf @@ -0,0 +1,23 @@ +# create an aws dynamodb table +resource "aws_dynamodb_table" "api_stat" { + name = "api_status-${terraform.workspace}" + hash_key = "CallID" + billing_mode = "PAY_PER_REQUEST" + + + attribute { + name = "CallID" + type = "S" + } + attribute { + + name = "Status" + type = "S" + } + + global_secondary_index { + name = "StatusIndex" + hash_key = "Status" + projection_type = "ALL" + } +}