Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

Latest commit

 

History

History
38 lines (30 loc) · 803 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 803 Bytes

DynamoDB Terraform Module

This is a convenience module for AWS DynamoDB

Usage

module "user_table" {
  source     = "assemble-inc/dynamodb/table"
  table_name = "User"
  hash_key   = "ID"

  dynamodb_attributes = [
    {
      name = "ID"
      type = "S"
    },
  ]
}

Inputs

  • 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

Outputs

  • table_arn: Dynamo Table ARN
  • policy_arn: Dynamo Policy ARN