{"id":16989532,"url":"https://github.com/jottenlips/lambda-terraform-example","last_synced_at":"2026-04-19T19:04:57.565Z","repository":{"id":101733353,"uuid":"518979397","full_name":"jottenlips/lambda-terraform-example","owner":"jottenlips","description":"Deploy a single lambda function using terraform","archived":false,"fork":false,"pushed_at":"2022-07-28T20:05:45.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T05:34:20.458Z","etag":null,"topics":["example","git","guide","infrastructure-as-code","lambda","python","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jottenlips.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-28T20:01:57.000Z","updated_at":"2023-03-08T16:17:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a22ca58c-519a-4b50-98a9-ec609740e5bc","html_url":"https://github.com/jottenlips/lambda-terraform-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Flambda-terraform-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Flambda-terraform-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Flambda-terraform-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jottenlips%2Flambda-terraform-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jottenlips","download_url":"https://codeload.github.com/jottenlips/lambda-terraform-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898446,"owners_count":20528341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example","git","guide","infrastructure-as-code","lambda","python","terraform"],"created_at":"2024-10-14T03:06:59.382Z","updated_at":"2026-04-19T19:04:52.524Z","avatar_url":"https://github.com/jottenlips.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infrastructure as Code Tutorial (Terraform)\n\nInstall Terraform\n\nRun these brew commands in your terminal or follow the install guide.\n\nhttps://learn.hashicorp.com/tutorials/terraform/install-cli\n\n```\n$ brew tap hashicorp/tap\n```\n\n```\n$ brew install hashicorp/tap/terraform\n```\n\nMake a bucket and dynamodb table to store terraform state\n\n```\n$ aws s3api create-bucket --bucket $BUCKET_NAME --region us-east-1 --create-bucket-configuration LocationConstraint=us-east-1\n\n$ aws s3api put-bucket-encryption --bucket $BUCKET_NAME --server-side-encryption-configuration \"{\\\"Rules\\\": [{\\\"ApplyServerSideEncryptionByDefault\\\":{\\\"SSEAlgorithm\\\": \\\"AES256\\\"}}]}\"\n\n$ aws dynamodb create-table --table-name terraform-lock-table --attribute-definitions AttributeName=LockID,AttributeType=S --key-schema AttributeName=LockID,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5\n```\n\n$BUCKET_NAME must be unique in all .tf files\n\nRun init\n\n```\n$ terraform init\n```\n\nThis command will show you what will change in the cloud.\n\n```\n$ terraform plan\n```\n\nThis command will apply your changes\n\n```\n$ terraform apply\n```\n\nThis code repo contains the minimum config needed to deploy an AWS Lambda to run a python function in the cloud. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjottenlips%2Flambda-terraform-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjottenlips%2Flambda-terraform-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjottenlips%2Flambda-terraform-example/lists"}