├── .envrc ├── .github └── workflows │ └── README.yml ├── .gitignore ├── .tool-versions ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── codebuild_builder ├── cfn.yaml.tmpl └── lambda.py ├── lambda_builders ├── cfn.yaml.tmpl ├── nodejs.js └── python.py ├── main.tf ├── outputs.tf ├── tests ├── changes │ ├── Makefile │ ├── lambda.tf.py │ ├── main.tf │ ├── src │ │ ├── build.sh │ │ └── lambda.py │ ├── terraform.tf.py │ └── test_changes.py ├── filename │ ├── Makefile │ ├── main.tf │ ├── src │ │ └── lambda.py │ ├── terraform.tf.py │ └── test_filename.py ├── golang │ ├── Makefile │ ├── main.tf │ ├── src │ │ ├── buildspec.yml │ │ ├── main.go │ │ └── main_test.go │ ├── terraform.tf.py │ └── test_golang.py ├── nodejs │ ├── Makefile │ ├── main.tf │ ├── src │ │ ├── build.sh │ │ ├── index.js │ │ └── package.json │ ├── terraform.tf.py │ └── test_nodejs.py ├── python │ ├── Makefile │ ├── main.tf │ ├── src │ │ ├── build.sh │ │ ├── lambda.py │ │ └── requirements.txt │ ├── terraform.tf.py │ └── test_python.py └── s3 │ ├── Makefile │ ├── main.tf │ ├── src │ └── lambda.py │ ├── terraform.tf.py │ └── test_s3.py ├── validate.py ├── variables.tf ├── versions.tf └── zip_files ├── .gitignore └── README.md /.envrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/.envrc -------------------------------------------------------------------------------- /.github/workflows/README.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/.github/workflows/README.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/.gitignore -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | terraform 0.12.26 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/README.md -------------------------------------------------------------------------------- /codebuild_builder/cfn.yaml.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/codebuild_builder/cfn.yaml.tmpl -------------------------------------------------------------------------------- /codebuild_builder/lambda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/codebuild_builder/lambda.py -------------------------------------------------------------------------------- /lambda_builders/cfn.yaml.tmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/lambda_builders/cfn.yaml.tmpl -------------------------------------------------------------------------------- /lambda_builders/nodejs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/lambda_builders/nodejs.js -------------------------------------------------------------------------------- /lambda_builders/python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/lambda_builders/python.py -------------------------------------------------------------------------------- /main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/main.tf -------------------------------------------------------------------------------- /outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/outputs.tf -------------------------------------------------------------------------------- /tests/changes/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/changes/Makefile -------------------------------------------------------------------------------- /tests/changes/lambda.tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/changes/lambda.tf.py -------------------------------------------------------------------------------- /tests/changes/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/changes/main.tf -------------------------------------------------------------------------------- /tests/changes/src/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/changes/src/build.sh -------------------------------------------------------------------------------- /tests/changes/src/lambda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/changes/src/lambda.py -------------------------------------------------------------------------------- /tests/changes/terraform.tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/changes/terraform.tf.py -------------------------------------------------------------------------------- /tests/changes/test_changes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/changes/test_changes.py -------------------------------------------------------------------------------- /tests/filename/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/filename/Makefile -------------------------------------------------------------------------------- /tests/filename/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/filename/main.tf -------------------------------------------------------------------------------- /tests/filename/src/lambda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/filename/src/lambda.py -------------------------------------------------------------------------------- /tests/filename/terraform.tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/filename/terraform.tf.py -------------------------------------------------------------------------------- /tests/filename/test_filename.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/filename/test_filename.py -------------------------------------------------------------------------------- /tests/golang/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/golang/Makefile -------------------------------------------------------------------------------- /tests/golang/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/golang/main.tf -------------------------------------------------------------------------------- /tests/golang/src/buildspec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/golang/src/buildspec.yml -------------------------------------------------------------------------------- /tests/golang/src/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/golang/src/main.go -------------------------------------------------------------------------------- /tests/golang/src/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/golang/src/main_test.go -------------------------------------------------------------------------------- /tests/golang/terraform.tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/golang/terraform.tf.py -------------------------------------------------------------------------------- /tests/golang/test_golang.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/golang/test_golang.py -------------------------------------------------------------------------------- /tests/nodejs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/nodejs/Makefile -------------------------------------------------------------------------------- /tests/nodejs/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/nodejs/main.tf -------------------------------------------------------------------------------- /tests/nodejs/src/build.sh: -------------------------------------------------------------------------------- 1 | npm install 2 | -------------------------------------------------------------------------------- /tests/nodejs/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/nodejs/src/index.js -------------------------------------------------------------------------------- /tests/nodejs/src/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/nodejs/src/package.json -------------------------------------------------------------------------------- /tests/nodejs/terraform.tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/nodejs/terraform.tf.py -------------------------------------------------------------------------------- /tests/nodejs/test_nodejs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/nodejs/test_nodejs.py -------------------------------------------------------------------------------- /tests/python/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/python/Makefile -------------------------------------------------------------------------------- /tests/python/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/python/main.tf -------------------------------------------------------------------------------- /tests/python/src/build.sh: -------------------------------------------------------------------------------- 1 | pip install -r requirements.txt -t . 2 | -------------------------------------------------------------------------------- /tests/python/src/lambda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/python/src/lambda.py -------------------------------------------------------------------------------- /tests/python/src/requirements.txt: -------------------------------------------------------------------------------- 1 | numpy 2 | timeprint 3 | -------------------------------------------------------------------------------- /tests/python/terraform.tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/python/terraform.tf.py -------------------------------------------------------------------------------- /tests/python/test_python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/python/test_python.py -------------------------------------------------------------------------------- /tests/s3/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/s3/Makefile -------------------------------------------------------------------------------- /tests/s3/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/s3/main.tf -------------------------------------------------------------------------------- /tests/s3/src/lambda.py: -------------------------------------------------------------------------------- 1 | def handler(event, context): 2 | return {"success": True} 3 | -------------------------------------------------------------------------------- /tests/s3/terraform.tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/s3/terraform.tf.py -------------------------------------------------------------------------------- /tests/s3/test_s3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/tests/s3/test_s3.py -------------------------------------------------------------------------------- /validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/validate.py -------------------------------------------------------------------------------- /variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raymondbutcher/terraform-aws-lambda-builder/HEAD/variables.tf -------------------------------------------------------------------------------- /versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 0.12.0" 3 | } 4 | -------------------------------------------------------------------------------- /zip_files/.gitignore: -------------------------------------------------------------------------------- 1 | *.zip 2 | -------------------------------------------------------------------------------- /zip_files/README.md: -------------------------------------------------------------------------------- 1 | this is where zips go 2 | --------------------------------------------------------------------------------