Skip to content

Commit

Permalink
Move module outside of dir
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDoubleu committed Jun 11, 2019
1 parent b060713 commit 57841f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Should resolve issues with:
- No longer have to touch/create .zip file before running terraform

```hcl
module "archive_lambda" {
source = "zip_file/"
source_dir = "dummy_lambda/"
output_path = "dummy_lambda.zip"
}
resource "aws_lambda_function" "lambda_function" {
filename = "${module.archive_lambda.zip_path}"
source_code_hash = "${module.archive_lambda.base64sha256}"
module "archive_lambda" {
source = "./"
source_dir = "dummy_lambda/"
output_path = "dummy_lambda.zip"
}
resource "aws_lambda_function" "lambda_function" {
filename = "${module.archive_lambda.zip_path}"
source_code_hash = "${module.archive_lambda.base64sha256}"
}
```
File renamed without changes.
File renamed without changes.

0 comments on commit 57841f8

Please sign in to comment.