```hcl
resource "aws_dynamodb_table" "table" {
  name             = "${var.table_name_prefix}${var.name}"
  read_capacity    = 1
  write_capacity   = 1
  hash_key         = "id"
  stream_enabled   = "${var.table_stream_enabled}"
  stream_view_type = "${var.table_stream_enabled ? "NEW_AND_OLD_IMAGES": ""}"

  attribute {
    name = "id"
    type = "S"
  }

  attribute {
    name = "reindexShard"
    type = "S"
  }

  global_secondary_index {
    name            = "reindexTracker"
    hash_key        = "reindexShard"
    write_capacity  = 1
    read_capacity   = 1
    projection_type = "ALL"
  }

  lifecycle {
    prevent_destroy = true

    ignore_changes = [
      "read_capacity",
      "write_capacity",
      "global_secondary_index", # ignore all as Terraform doesn't currently allow ignoring specifically global_secondary_index.write_capacity and global_secondary_index.read_capacity
    ]
  }
}

module "sourcedata_dynamo_autoscaling" {
  source = "git::https://github.com/wellcometrust/terraform.git//autoscaling/dynamodb?ref=dynamodb-autoscaling"

  table_name = "${aws_dynamodb_table.table.name}"

  enable_read_scaling     = true
  read_target_utilization = 30
  read_min_capacity       = 1
  read_max_capacity       = "${var.table_read_max_capacity}"

  enable_write_scaling     = true
  write_target_utilization = 30
  write_min_capacity       = 1
  write_max_capacity       = "${var.table_write_max_capacity}"
}
```

Remove the reindexTracker GSI from the VHS
user
```hcl
resource "aws_dynamodb_table" "table" {
  name             = "${var.table_name_prefix}${var.name}"
  read_capacity    = 1
  write_capacity   = 1
  hash_key         = "id"
  stream_enabled   = "${var.table_stream_enabled}"
  stream_view_type = "${var.table_stream_enabled ? "NEW_AND_OLD_IMAGES": ""}"

  attribute {
    name = "id"
    type = "S"
  }

  lifecycle {
    prevent_destroy = true

    ignore_changes = [
      "read_capacity",
      "write_capacity",
    ]
  }
}

module "sourcedata_dynamo_autoscaling" {
  source = "git::https://github.com/wellcometrust/terraform.git//autoscaling/dynamodb?ref=dynamodb-autoscaling"

  table_name = "${aws_dynamodb_table.table.name}"

  enable_read_scaling     = true
  read_target_utilization = 30
  read_min_capacity       = 1
  read_max_capacity       = "${var.table_read_max_capacity}"

  enable_write_scaling     = true
  write_target_utilization = 30
  write_min_capacity       = 1
  write_max_capacity       = "${var.table_write_max_capacity}"
}
```
assistant