Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Opticsponge opened this issue Feb 13, 2019 · 0 comments
Open

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

Opticsponge opened this issue Feb 13, 2019 · 0 comments

Comments

@Opticsponge
Copy link

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"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant