Skip to content

Commit b1970df

Browse files
authored
Merge pull request #304 from overmindtech/fix/message-size-breach
add terrform archive
2 parents 04b45ea + 573b25e commit b1970df

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

modules/scenarios/message-size-breach/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ resource "aws_lambda_function" "image_processor" {
5252
# This will fail when batch size × message size > 256KB (Lambda async limit)
5353
memory_size = 1024
5454

55+
depends_on = [
56+
data.archive_file.lambda_zip,
57+
aws_iam_role.lambda_role
58+
]
59+
5560

5661
tags = {
5762
Name = "Image Processor"

terraform.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ terraform {
1515
# we expect this to be fixed over the coming weeks, as of 23/6/2025
1616
version = "< 6.0"
1717
}
18+
archive = {
19+
source = "hashicorp/archive"
20+
version = "~> 2.0"
21+
}
1822
}
1923
backend "s3" {
2024
# note that this configuration is only used on the github actions demo

0 commit comments

Comments
 (0)