diff --git a/services/terraform/.terraform.lock.hcl b/services/terraform/.terraform.lock.hcl --- a/services/terraform/.terraform.lock.hcl +++ b/services/terraform/.terraform.lock.hcl @@ -5,7 +5,6 @@ version = "4.9.0" constraints = "~> 4.9.0" hashes = [ - "h1:OWIIlbMZl/iQ8qR1U7Co3sGjNHL1HJtgNRnnV1kXNuI=", "h1:gx4ni9ZxacUusjZdfLmRVgoMVn1o3CVo0xklOQA2zA8=", "zh:084b83aef3335ad4f5e4b8323c6fe43c1ff55e17a7647c6a5cad6af519f72b42", "zh:132e47ce69f14de4523b84b213cedf7173398acda14245b1ffe7747aac50f050", 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] }