aws dynamodb operator_info table

This commit is contained in:
Will Freeman
2025-05-22 23:35:26 -06:00
parent 2c933903c8
commit 3df28e1133
4 changed files with 27 additions and 0 deletions

View File

@@ -15,3 +15,8 @@ module "alpr_clusters" {
deflock_cdn_bucket = var.deflock_cdn_bucket
rate = "rate(1 hour)"
}
module "operator_info" {
module_name = "operator_info"
source = "./modules/operator_info"
}

View File

@@ -0,0 +1,10 @@
resource "aws_dynamodb_table" "operator_info" {
name = var.module_name
billing_mode = "PAY_PER_REQUEST"
hash_key = "wikidataId"
attribute {
name = "wikidataId"
type = "S"
}
}

View File

@@ -0,0 +1,9 @@
output "dynamodb_table_name" {
description = "The name of the DynamoDB table"
value = aws_dynamodb_table.operator_info.name
}
output "dynamodb_table_arn" {
description = "The ARN of the DynamoDB table"
value = aws_dynamodb_table.operator_info.arn
}

View File

@@ -0,0 +1,3 @@
variable "module_name" {
description = "Name of the module"
}