Skip to content

Commit dbd4f0f

Browse files
lower case key names
1 parent 6019de1 commit dbd4f0f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

infrastructure/terraform/components/api/ddb_table_supplier_configuration.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ resource "aws_dynamodb_table" "supplier-configuration" {
22
name = "${local.csi}-supplier-config"
33
billing_mode = "PAY_PER_REQUEST"
44

5-
hash_key = "PK"
6-
range_key = "SK"
5+
hash_key = "pk"
6+
range_key = "sk"
77

88
ttl {
99
attribute_name = "ttl"
1010
enabled = true
1111
}
1212

1313
attribute {
14-
name = "PK"
14+
name = "pk"
1515
type = "S"
1616
}
1717

1818
attribute {
19-
name = "SK"
19+
name = "sk"
2020
type = "S"
2121
}
2222

@@ -39,20 +39,20 @@ resource "aws_dynamodb_table" "supplier-configuration" {
3939
global_secondary_index {
4040
name = "EntityTypeIndex"
4141
hash_key = "entityType"
42-
range_key = "SK"
42+
range_key = "sk"
4343
projection_type = "ALL"
4444
}
4545

4646
global_secondary_index {
4747
name = "volumeGroup-index"
48-
hash_key = "PK"
48+
hash_key = "pk"
4949
range_key = "volumeGroup"
5050
projection_type = "ALL"
5151
}
5252

5353
global_secondary_index {
5454
name = "packSpecificationId-index"
55-
hash_key = "PK"
55+
hash_key = "pk"
5656
range_key = "packSpecificationId"
5757
projection_type = "ALL"
5858
}

0 commit comments

Comments
 (0)