├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── ga ├── .gitignore ├── README.md ├── api_gateway_v1 │ ├── events │ │ └── auth.json │ ├── src │ │ ├── auth │ │ │ ├── app.py │ │ │ └── requirements.txt │ │ └── responder │ │ │ ├── app.py │ │ │ └── requirements.txt │ └── tf-resources │ │ ├── api.tf │ │ ├── functions.tf │ │ ├── main.tf │ │ ├── samconfig.yaml │ │ └── variables.tf ├── api_gateway_v2 │ ├── events │ │ └── auth.json │ ├── src │ │ ├── auth │ │ │ ├── app.py │ │ │ └── requirements.txt │ │ └── responder │ │ │ ├── app.py │ │ │ └── requirements.txt │ └── tf-resources │ │ ├── api.tf │ │ ├── functions.tf │ │ ├── main.tf │ │ ├── samconfig.yaml │ │ └── variables.tf └── api_gateway_v2_tf_cloud │ ├── api.tf │ ├── custom-plan.json │ ├── events │ └── auth.json │ ├── functions.tf │ ├── main.tf │ ├── samconfig.yaml │ └── variables.tf ├── serverless_tf_sample └── api-lambda-dynamodb-example │ ├── README.md │ ├── events │ ├── bad-review-score.json │ ├── lambda-input.json │ └── new-review.json │ ├── locals.json │ ├── main.tf │ ├── outputs.tf │ ├── src │ ├── index.py │ └── requirements.txt │ └── variables.tf └── zip_based_lambda_functions ├── api-lambda-dynamodb-example ├── PyBuild.ps1 ├── events │ ├── bad-review-score.json │ ├── lambda-input.json │ └── new-review.json ├── locals.json ├── main.tf ├── outputs.tf ├── py_build.sh ├── src │ ├── index.py │ └── requirements.txt └── variables.tf └── lambda-example ├── PyBuild.ps1 ├── events └── sample_event.json ├── main.tf ├── py_build.sh ├── src └── index.py └── variables.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/README.md -------------------------------------------------------------------------------- /ga/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/.gitignore -------------------------------------------------------------------------------- /ga/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/README.md -------------------------------------------------------------------------------- /ga/api_gateway_v1/events/auth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/events/auth.json -------------------------------------------------------------------------------- /ga/api_gateway_v1/src/auth/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/src/auth/app.py -------------------------------------------------------------------------------- /ga/api_gateway_v1/src/auth/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3 -------------------------------------------------------------------------------- /ga/api_gateway_v1/src/responder/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/src/responder/app.py -------------------------------------------------------------------------------- /ga/api_gateway_v1/src/responder/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3 2 | requests -------------------------------------------------------------------------------- /ga/api_gateway_v1/tf-resources/api.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/tf-resources/api.tf -------------------------------------------------------------------------------- /ga/api_gateway_v1/tf-resources/functions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/tf-resources/functions.tf -------------------------------------------------------------------------------- /ga/api_gateway_v1/tf-resources/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/tf-resources/main.tf -------------------------------------------------------------------------------- /ga/api_gateway_v1/tf-resources/samconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/tf-resources/samconfig.yaml -------------------------------------------------------------------------------- /ga/api_gateway_v1/tf-resources/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v1/tf-resources/variables.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2/events/auth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/events/auth.json -------------------------------------------------------------------------------- /ga/api_gateway_v2/src/auth/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/src/auth/app.py -------------------------------------------------------------------------------- /ga/api_gateway_v2/src/auth/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3 -------------------------------------------------------------------------------- /ga/api_gateway_v2/src/responder/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/src/responder/app.py -------------------------------------------------------------------------------- /ga/api_gateway_v2/src/responder/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3 2 | requests -------------------------------------------------------------------------------- /ga/api_gateway_v2/tf-resources/api.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/tf-resources/api.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2/tf-resources/functions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/tf-resources/functions.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2/tf-resources/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/tf-resources/main.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2/tf-resources/samconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/tf-resources/samconfig.yaml -------------------------------------------------------------------------------- /ga/api_gateway_v2/tf-resources/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2/tf-resources/variables.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2_tf_cloud/api.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2_tf_cloud/api.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2_tf_cloud/custom-plan.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2_tf_cloud/custom-plan.json -------------------------------------------------------------------------------- /ga/api_gateway_v2_tf_cloud/events/auth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2_tf_cloud/events/auth.json -------------------------------------------------------------------------------- /ga/api_gateway_v2_tf_cloud/functions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2_tf_cloud/functions.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2_tf_cloud/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2_tf_cloud/main.tf -------------------------------------------------------------------------------- /ga/api_gateway_v2_tf_cloud/samconfig.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2_tf_cloud/samconfig.yaml -------------------------------------------------------------------------------- /ga/api_gateway_v2_tf_cloud/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/ga/api_gateway_v2_tf_cloud/variables.tf -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/README.md -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/events/bad-review-score.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/events/bad-review-score.json -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/events/lambda-input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/events/lambda-input.json -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/events/new-review.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/events/new-review.json -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/locals.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/locals.json -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/main.tf -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/outputs.tf -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/src/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/src/index.py -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/src/requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | ptvsd -------------------------------------------------------------------------------- /serverless_tf_sample/api-lambda-dynamodb-example/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/serverless_tf_sample/api-lambda-dynamodb-example/variables.tf -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/PyBuild.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/PyBuild.ps1 -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/events/bad-review-score.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/events/bad-review-score.json -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/events/lambda-input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/events/lambda-input.json -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/events/new-review.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/events/new-review.json -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/locals.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/locals.json -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/main.tf -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/outputs.tf -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/py_build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/py_build.sh -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/src/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/src/index.py -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/src/requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | ptvsd 3 | urllib3==1.26.15 -------------------------------------------------------------------------------- /zip_based_lambda_functions/api-lambda-dynamodb-example/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/api-lambda-dynamodb-example/variables.tf -------------------------------------------------------------------------------- /zip_based_lambda_functions/lambda-example/PyBuild.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/lambda-example/PyBuild.ps1 -------------------------------------------------------------------------------- /zip_based_lambda_functions/lambda-example/events/sample_event.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/lambda-example/events/sample_event.json -------------------------------------------------------------------------------- /zip_based_lambda_functions/lambda-example/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/lambda-example/main.tf -------------------------------------------------------------------------------- /zip_based_lambda_functions/lambda-example/py_build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/lambda-example/py_build.sh -------------------------------------------------------------------------------- /zip_based_lambda_functions/lambda-example/src/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/lambda-example/src/index.py -------------------------------------------------------------------------------- /zip_based_lambda_functions/lambda-example/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-samples/aws-sam-terraform-examples/HEAD/zip_based_lambda_functions/lambda-example/variables.tf --------------------------------------------------------------------------------