mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-02-12 15:02:45 +00:00
aws dynamodb operator_info table
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
10
terraform/modules/operator_info/main.tf
Normal file
10
terraform/modules/operator_info/main.tf
Normal 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"
|
||||
}
|
||||
}
|
||||
9
terraform/modules/operator_info/outputs.tf
Normal file
9
terraform/modules/operator_info/outputs.tf
Normal 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
|
||||
}
|
||||
3
terraform/modules/operator_info/variables.tf
Normal file
3
terraform/modules/operator_info/variables.tf
Normal file
@@ -0,0 +1,3 @@
|
||||
variable "module_name" {
|
||||
description = "Name of the module"
|
||||
}
|
||||
Reference in New Issue
Block a user