Description
The inventory lists DynamoDB tables declared in Terraform.
Potential impact
A missing table can be overlooked during a restore or permissions review.
Remediation
Record the service and owner. Check access policies, the encryption key and whether point-in-time recovery (PITR) meets recovery needs.
Examples
The example tags the orders table. Check any IAM policies that grant access based on those tags.
Before
hcl
resource "aws_dynamodb_table" "orders" {
name = "orders"
billing_mode = "PAY_PER_REQUEST"
hash_key = "id"
attribute {
name = "id"
type = "S"
}
}
After
hcl
resource "aws_dynamodb_table" "orders" {
name = "orders"
billing_mode = "PAY_PER_REQUEST"
hash_key = "id"
attribute {
name = "id"
type = "S"
}
tags = {
Service = "orders"
Environment = "production"
}
}