diff --git a/services/terraform/dynamodb-test.tf b/services/terraform/dynamodb-test.tf --- a/services/terraform/dynamodb-test.tf +++ b/services/terraform/dynamodb-test.tf @@ -78,11 +78,11 @@ } global_secondary_index { - name = "blobHash-index" - hash_key = "blobHash" - write_capacity = 10 - read_capacity = 10 - projection_type = "ALL" + name = "blobHash-index" + hash_key = "blobHash" + write_capacity = 10 + read_capacity = 10 + projection_type = "ALL" } } @@ -149,11 +149,11 @@ } global_secondary_index { - name = "ToDeviceID-index" - hash_key = "ToDeviceID" - write_capacity = 10 - read_capacity = 10 - projection_type = "ALL" + name = "ToDeviceID-index" + hash_key = "ToDeviceID" + write_capacity = 10 + read_capacity = 10 + projection_type = "ALL" } ttl { diff --git a/services/terraform/dynamodb.tf b/services/terraform/dynamodb.tf --- a/services/terraform/dynamodb.tf +++ b/services/terraform/dynamodb.tf @@ -78,11 +78,11 @@ } global_secondary_index { - name = "blobHash-index" - hash_key = "blobHash" - write_capacity = 10 - read_capacity = 10 - projection_type = "ALL" + name = "blobHash-index" + hash_key = "blobHash" + write_capacity = 10 + read_capacity = 10 + projection_type = "ALL" } } @@ -149,11 +149,11 @@ } global_secondary_index { - name = "ToDeviceID-index" - hash_key = "ToDeviceID" - write_capacity = 10 - read_capacity = 10 - projection_type = "ALL" + name = "ToDeviceID-index" + hash_key = "ToDeviceID" + write_capacity = 10 + read_capacity = 10 + projection_type = "ALL" } ttl { diff --git a/services/terraform/localstack.tf b/services/terraform/localstack.tf --- a/services/terraform/localstack.tf +++ b/services/terraform/localstack.tf @@ -1,5 +1,5 @@ variable "HOST" { - type = string + type = string default = "http://localhost:4566" } @@ -15,6 +15,6 @@ endpoints { dynamodb = var.HOST - s3 = var.HOST + s3 = var.HOST } } diff --git a/services/terraform/s3.tf b/services/terraform/s3.tf --- a/services/terraform/s3.tf +++ b/services/terraform/s3.tf @@ -1,11 +1,11 @@ variable "s3_bucket_names" { - type = list + type = list(any) default = [ "commapp-blob", ] } resource "aws_s3_bucket" "comm_buckets" { - count = length(var.s3_bucket_names) + count = length(var.s3_bucket_names) bucket = var.s3_bucket_names[count.index] }