This is a convenience module for AWS DynamoDB
module "user_table" {
source = "assemble-inc/dynamodb/table"
table_name = "User"
hash_key = "ID"
dynamodb_attributes = [
{
name = "ID"
type = "S"
},
]
}
- table_name: Table name
- read_capacity: Read capacity
- write_capacity: Write capacity
- enable_encryption: Encryption enabled (Default: true)
- enable_point_in_time_recovery: Enable point in time recovery (Default: true)
- hash_key: Hash key
- range_key: Range key
- dynamodb_attributes: Attributes list
- global_secondary_index: Global secondary index list
- tags: Tags map
- table_arn: Dynamo Table ARN
- policy_arn: Dynamo Policy ARN