Skip to content

Commit

Permalink
Merge pull request #149 from cds-snc/feature/new-retrieved-attribute-…
Browse files Browse the repository at this point in the history
…on-dynamo-vault-table

feat: added new attribute Retrieved and global secondary index to Dyn…
  • Loading branch information
craigzour authored Dec 15, 2021
2 parents 5b779c2 + 69f7fab commit 6382373
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aws/dynamodb/dynamo.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ resource "aws_dynamodb_table" "vault" {
type = "S"
}

attribute {
name = "Retrieved"
type = "N"
}

global_secondary_index {
name = "retrieved-index"
hash_key = "Retrieved"
projection_type = "ALL"
}

server_side_encryption {
enabled = true
kms_key_arn = var.kms_key_dynamodb_arn
Expand Down

0 comments on commit 6382373

Please sign in to comment.