mirror of
https://github.com/Sea-Haven-Industries/procurement-ingest.git
synced 2026-09-30 10:43:14 +00:00
chore(infra): remove PascalCase WO Dynamo table resources
Destroy WorkOrders / WorkOrderComments under HCP after the kebab soak. Kebab work-orders / work-order-comments remain the sole live tables.
This commit is contained in:
parent
3f0ff8e82b
commit
817c86d58a
2 changed files with 1 additions and 62 deletions
|
|
@ -17,15 +17,6 @@ import {
|
|||
id = "pending-site-review"
|
||||
}
|
||||
|
||||
import {
|
||||
to = aws_dynamodb_table.work_orders
|
||||
id = "WorkOrders"
|
||||
}
|
||||
|
||||
import {
|
||||
to = aws_dynamodb_table.work_order_comments
|
||||
id = "WorkOrderComments"
|
||||
}
|
||||
|
||||
# PLAT-11 kebab tables — created out-of-band then imported after HCP CreateTable
|
||||
# IAM pin widened (hcptf-procurement-ingest lacked kebab ARNs on first apply).
|
||||
|
|
|
|||
|
|
@ -1,56 +1,4 @@
|
|||
# PLAT-11: live WO tables are kebab-case. PascalCase WorkOrders /
|
||||
# WorkOrderComments retained until ≥24h soak; prevent_destroy lifted for
|
||||
# the follow-up destroy apply (ready 2026-08-08T18:16Z).
|
||||
|
||||
resource "aws_dynamodb_table" "work_orders" {
|
||||
name = "WorkOrders"
|
||||
billing_mode = "PAY_PER_REQUEST"
|
||||
hash_key = "work_order_id"
|
||||
|
||||
attribute {
|
||||
name = "work_order_id"
|
||||
type = "S"
|
||||
}
|
||||
|
||||
stream_enabled = true
|
||||
stream_view_type = "NEW_AND_OLD_IMAGES"
|
||||
|
||||
tags = {
|
||||
Plat11 = "legacy-pending-destroy"
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
prevent_destroy = false
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_dynamodb_table" "work_order_comments" {
|
||||
name = "WorkOrderComments"
|
||||
billing_mode = "PAY_PER_REQUEST"
|
||||
hash_key = "work_order_id"
|
||||
range_key = "comment_id"
|
||||
|
||||
attribute {
|
||||
name = "work_order_id"
|
||||
type = "S"
|
||||
}
|
||||
|
||||
attribute {
|
||||
name = "comment_id"
|
||||
type = "S"
|
||||
}
|
||||
|
||||
stream_enabled = true
|
||||
stream_view_type = "NEW_AND_OLD_IMAGES"
|
||||
|
||||
tags = {
|
||||
Plat11 = "legacy-pending-destroy"
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
prevent_destroy = false
|
||||
}
|
||||
}
|
||||
# PLAT-11: live WO tables are kebab-case (PascalCase destroyed).
|
||||
|
||||
resource "aws_dynamodb_table" "work_orders_kebab" {
|
||||
name = "work-orders"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue