From 327677e40a788bda85d5401caa869353e823325d Mon Sep 17 00:00:00 2001 From: Chisel Date: Wed, 30 Aug 2023 16:36:33 +0100 Subject: [PATCH 1/3] style: remove extra trailing blank line from changeset file --- .changeset/vast-tan-limpet.md | 1 - 1 file changed, 1 deletion(-) 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 - From d57f95aaa80a3de2c34bfa460756ddaa0f3bd9ef Mon Sep 17 00:00:00 2001 From: Chisel Date: Wed, 30 Aug 2023 16:37:11 +0100 Subject: [PATCH 2/3] feat: create dynamodb table for api status --- terraform/api-status-db.tf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 terraform/api-status-db.tf 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" + } +} From 7e3f2ffb94bd33c1d06454123d8c633086e165c0 Mon Sep 17 00:00:00 2001 From: Chisel Date: Wed, 30 Aug 2023 16:37:49 +0100 Subject: [PATCH 3/3] chore: add terraform to vscode extension recommendations --- .vscode/extensions.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" + ] }