Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit ce756ad

Browse files
authored
Add zip package (#24)
* Add zip package * Add zip package * Add zip package
1 parent dc1a60d commit ce756ad

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,4 @@ lib/**/*
102102
**/.terraform/*
103103
**/*.tfstate
104104
**/*.tfstate.backup
105-
*.zip
106105

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ tf-docs:
66
tf-fmt:
77
@docker run --rm -v $(PWD):/opt/ct -w /opt/ct hashicorp/terraform:0.13.5 fmt -recursive
88

9-
all: tf-fmt tf-docs
9+
package:
10+
@zip -r terraform_module/lambda.zip dist/
11+
12+
all: tf-fmt tf-docs package

terraform_module/lambda.zip

1.11 MB
Binary file not shown.

terraform_module/main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ resource "aws_iam_role_policy_attachment" "lambda_vpc_policy" {
7878
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"
7979
}
8080

81-
data "archive_file" "lambda" {
82-
type = "zip"
83-
output_path = "./lambda.zip"
84-
source_dir = "../dist/"
85-
}
86-
8781
module "lambda" {
8882
source = "github.com/comtravo/terraform-aws-lambda?ref=5.0.0"
8983

0 commit comments

Comments
 (0)