File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -567,3 +567,36 @@ resource "aws_dynamodb_table" "store_limits" {
567567 }
568568 }
569569}
570+
571+ resource "aws_dynamodb_table" "events_rsvp" {
572+ region = " us-east-2"
573+ billing_mode = " PAY_PER_REQUEST"
574+ name = " ${ var . ProjectId } -events-rsvp"
575+ deletion_protection_enabled = true
576+ hash_key = " partitionKey"
577+ point_in_time_recovery {
578+ enabled = true
579+ }
580+ attribute {
581+ name = " partitionKey"
582+ type = " S"
583+ }
584+ attribute {
585+ name = " eventId"
586+ type = " S"
587+ }
588+ global_secondary_index {
589+ name = " EventIdIndex"
590+ hash_key = " eventId"
591+ projection_type = " ALL"
592+ }
593+ stream_enabled = true
594+ stream_view_type = " NEW_AND_OLD_IMAGES"
595+ dynamic "replica" {
596+ for_each = var. ReplicationRegions
597+ content {
598+ region_name = replica. value
599+ deletion_protection_enabled = true
600+ }
601+ }
602+ }
You can’t perform that action at this time.
0 commit comments