Skip to content

Terraform Module if you want to add to readme somewhere #4

@Opticsponge

Description

@Opticsponge

only change is I switched to PAY_PER_REQUEST

resource "aws_dynamodb_table" "order_service_graph" {
  name = "GraphTable"
  billing_mode = "PAY_PER_REQUEST"
  hash_key       = "Node"
  range_key      = "Type"
  attribute {
    name = "Node"
    type = "S"
  }
  attribute {
    name = "Type"
    type = "S"
  }
  attribute {
    name = "Data"
    type = "S"
  }
  attribute {
    name = "GSIK"
    type = "S"
  }
  global_secondary_index {
    name               = "ByType"
    hash_key           = "GSIK"
    range_key          = "Type"
    projection_type    = "ALL"
  }
  global_secondary_index {
    name               = "ByData"
    hash_key           = "GSIK"
    range_key          = "Data"
    projection_type    = "ALL"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions