File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
infrastructure/terraform/components/api Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ resource "aws_dynamodb_table" "letters" {
55 hash_key = " supplierId"
66 range_key = " id"
77
8+ ttl {
9+ attribute_name = " ttl"
10+ enabled = true
11+ }
12+
813 global_secondary_index {
914 name = " supplierStatus-index"
1015 hash_key = " supplierStatus"
@@ -27,6 +32,11 @@ resource "aws_dynamodb_table" "letters" {
2732 type = " string"
2833 }
2934
35+ attribute {
36+ name = " ttl"
37+ type = " number"
38+ }
39+
3040 point_in_time_recovery {
3141 enabled = true
3242 }
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ resource "aws_dynamodb_table" "mi" {
55 hash_key = " supplierId"
66 range_key = " id"
77
8+ ttl {
9+ attribute_name = " ttl"
10+ enabled = true
11+ }
12+
813 attribute {
914 name = " id"
1015 type = " string"
@@ -15,6 +20,11 @@ resource "aws_dynamodb_table" "mi" {
1520 type = " string"
1621 }
1722
23+ attribute {
24+ name = " ttl"
25+ type = " number"
26+ }
27+
1828 point_in_time_recovery {
1929 enabled = true
2030 }
You can’t perform that action at this time.
0 commit comments