Skip to content

Commit

Permalink
Support archive for upload to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Fortuna committed Dec 16, 2020
1 parent 7c22e45 commit fa698e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
terraform-aws-ecs-cluster.iml
*.tfvars
*tfstate*
*.zip
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DIAGRAMS=docker run -v "${PWD}:/work" figurate/diagrams python

EXAMPLE=$(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))

.PHONY: all clean validate test docs format
.PHONY: all clean validate test docs format example archive

all: validate test docs format

Expand All @@ -41,4 +41,7 @@ format:
$(TERRAFORM) fmt -list=true ./examples/spotfleet

example:
$(TERRAFORM) init examples/$(EXAMPLE) && $(TERRAFORM) plan -input=false examples/$(EXAMPLE)
$(TERRAFORM) init examples/$(EXAMPLE) && $(TERRAFORM) plan -input=false examples/$(EXAMPLE)

archive:
zip aws-ecs-cluster.zip *.tf *.png *.md

0 comments on commit fa698e4

Please sign in to comment.