Skip to content

Commit 57841f8

Browse files
author
JayDoubleu
committed
Move module outside of dir
1 parent b060713 commit 57841f8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Should resolve issues with:
88
- No longer have to touch/create .zip file before running terraform
99

1010
```hcl
11-
module "archive_lambda" {
12-
source = "zip_file/"
13-
source_dir = "dummy_lambda/"
14-
output_path = "dummy_lambda.zip"
15-
}
16-
17-
18-
resource "aws_lambda_function" "lambda_function" {
19-
filename = "${module.archive_lambda.zip_path}"
20-
source_code_hash = "${module.archive_lambda.base64sha256}"
11+
module "archive_lambda" {
12+
source = "./"
13+
source_dir = "dummy_lambda/"
14+
output_path = "dummy_lambda.zip"
15+
}
16+
17+
18+
resource "aws_lambda_function" "lambda_function" {
19+
filename = "${module.archive_lambda.zip_path}"
20+
source_code_hash = "${module.archive_lambda.base64sha256}"
2121
}
2222
```
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)