mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 06:33:12 +00:00
Freeze SAM CD and add greenfield Terraform for seahaven-prod so HCP is the sole stack deploy path.
35 lines
686 B
HCL
35 lines
686 B
HCL
# Single-table store for orders, roster entries and weekly settings.
|
|
#
|
|
# Deletion protection and point-in-time recovery are both on: this table holds
|
|
# the only copy of submitted orders, and a rebuild would lose payroll history.
|
|
resource "aws_dynamodb_table" "orders" {
|
|
name = local.table_name
|
|
billing_mode = "PAY_PER_REQUEST"
|
|
hash_key = "PK"
|
|
range_key = "SK"
|
|
|
|
deletion_protection_enabled = true
|
|
|
|
attribute {
|
|
name = "PK"
|
|
type = "S"
|
|
}
|
|
|
|
attribute {
|
|
name = "SK"
|
|
type = "S"
|
|
}
|
|
|
|
ttl {
|
|
attribute_name = "ttl"
|
|
enabled = true
|
|
}
|
|
|
|
point_in_time_recovery {
|
|
enabled = true
|
|
}
|
|
|
|
lifecycle {
|
|
prevent_destroy = true
|
|
}
|
|
}
|