Skip to content

Commit a603792

Browse files
committed
missing KMS
1 parent b8fa16c commit a603792

File tree

2 files changed

+90
-21
lines changed

2 files changed

+90
-21
lines changed

infra/.terraform.lock.hcl

Lines changed: 78 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/mesh_processor.tf

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# Only create MESH processor resources if MESH is configured for this environment
22
locals {
33
create_mesh_processor = var.mesh_mailbox_id != null
4+
vpc_default = aws_vpc.default.id
45
}
56

7+
data "aws_subnets" "default" {
8+
filter {
9+
name = "vpc-id"
10+
values = [aws_vpc.default.id]
11+
}
12+
}
13+
14+
615
# MESH Client Module - conditionally created based on environment configuration
716
module "mesh" {
817
count = local.create_mesh_processor ? 1 : 0
@@ -148,8 +157,8 @@ resource "aws_iam_policy" "mesh_processor_lambda_exec_policy" {
148157
"s3:CopyObject"
149158
]
150159
Resource = [
151-
aws_s3_bucket.batch_data_source_bucket.arn,
152-
"${aws_s3_bucket.batch_data_source_bucket.arn}/*"
160+
aws_s3_bucket.batch_data_source_bucket[0].arn,
161+
"${aws_s3_bucket.batch_data_source_bucket[0].arn}/*"
153162
]
154163
},
155164
{
@@ -220,7 +229,7 @@ resource "aws_lambda_function" "mesh_file_converter_lambda" {
220229

221230
environment {
222231
variables = {
223-
Destination_BUCKET_NAME = aws_s3_bucket.batch_data_source_bucket.bucket
232+
Destination_BUCKET_NAME = aws_s3_bucket.batch_data_source_bucket[0].bucket
224233
MESH_FILE_PROC_LAMBDA_NAME = "${local.mesh_processor_lambda_name}"
225234
}
226235
}

0 commit comments

Comments
 (0)