Skip to content

Commit d711b96

Browse files
authored
Stripe ACH: Add Table (#332)
Terraform for DynamoDB ACH payments table Addresses #307
1 parent 46be337 commit d711b96

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

terraform/modules/dynamo/main.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,26 @@ resource "aws_dynamodb_table" "stripe_links" {
256256
}
257257
}
258258

259+
resource "aws_dynamodb_table" "stripe_payments" {
260+
billing_mode = "PAY_PER_REQUEST"
261+
name = "${var.ProjectId}-stripe-payments"
262+
deletion_protection_enabled = true
263+
hash_key = "primaryKey"
264+
range_key = "sortKey"
265+
266+
point_in_time_recovery {
267+
enabled = true
268+
}
269+
attribute {
270+
name = "primaryKey"
271+
type = "S"
272+
}
273+
274+
attribute {
275+
name = "sortKey"
276+
type = "S"
277+
}
278+
}
259279
resource "aws_dynamodb_table" "linkry_records" {
260280
billing_mode = "PAY_PER_REQUEST"
261281
name = "${var.ProjectId}-linkry"

0 commit comments

Comments
 (0)