{"id":48540134,"url":"https://github.com/localstack-samples/terraform-tests-localstack-github-actions-ci","last_synced_at":"2026-04-08T04:01:45.378Z","repository":{"id":343488796,"uuid":"913247298","full_name":"localstack-samples/terraform-tests-localstack-github-actions-ci","owner":"localstack-samples","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-10T14:39:43.000Z","size":5497,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-10T20:48:52.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/localstack-samples.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-07T10:11:08.000Z","updated_at":"2026-03-10T14:39:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/localstack-samples/terraform-tests-localstack-github-actions-ci","commit_stats":null,"previous_names":["localstack-samples/terraform-tests-localstack-github-actions-ci"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/localstack-samples/terraform-tests-localstack-github-actions-ci","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fterraform-tests-localstack-github-actions-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fterraform-tests-localstack-github-actions-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fterraform-tests-localstack-github-actions-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fterraform-tests-localstack-github-actions-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localstack-samples","download_url":"https://codeload.github.com/localstack-samples/terraform-tests-localstack-github-actions-ci/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localstack-samples%2Fterraform-tests-localstack-github-actions-ci/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31539229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-04-08T04:01:44.493Z","updated_at":"2026-04-08T04:01:45.374Z","avatar_url":"https://github.com/localstack-samples.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Image Resizer with LocalStack \u0026 Terraform\n\nThis is a simple example of how to use LocalStack to create a serverless image resizer using AWS Lambda and S3. The image resizer is implemented in Python and uses the Python Imaging Library (PIL) to resize images.\n\n## Requirements\n\n- LocalStack with the [`localstack` CLI](https://docs.localstack.cloud/getting-started/installation/#localstack-cli).\n- [Terraform CLI](https://www.terraform.io/downloads) with the [`tflocal` wrapper](https://github.com/localstack/terraform-local).\n- [AWS CLI](https://docs.localstack.cloud/user-guide/integrations/aws-cli/) with the [`awslocal` wrapper](https://docs.localstack.cloud/user-guide/integrations/aws-cli/#localstack-aws-cli-awslocal).\n- A valid [LocalStack for AWS license](https://localstack.cloud/pricing). Your license provides a [`LOCALSTACK_AUTH_TOKEN`](https://docs.localstack.cloud/getting-started/auth-token/) to activate LocalStack.\n\n## Start LocalStack\n\nStart LocalStack Pro with the `LOCALSTACK_AUTH_TOKEN` pre-configured:\n\n```bash\nexport LOCALSTACK_AUTH_TOKEN=\u003cyour-auth-token\u003e\nmake start\nmake ready\n```\n\n## Build the Lambda function\n\nTo build the Lambda function, you need to create a ZIP archive with the Python code and the required dependencies. You can use the following commands to create the ZIP archive:\n\n```bash\ndocker run --platform linux/x86_64 --rm -v \"$PWD\":/var/task \"public.ecr.aws/sam/build-python3.11\" /bin/sh -c \"pip3 install -r requirements.txt -t libs; exit\"\n\ncd libs \u0026\u0026 zip -r ../lambda.zip . \u0026\u0026 cd ..\nzip lambda.zip lambda_function.py\nrm -rf libs\n```\n\n## Deploy the infrastructure\n\nTo run this example you need to execute:\n\n```bash\ntflocal init\ntflocal plan\ntflocal apply --auto-approve\n```\n\nAfter the Terraform script has been applied, you can upload an image to the S3 bucket and check the resized image in the `resized` folder. Here is an example:\n\n```bash\nawslocal s3 cp image.png s3://original-images/image.png\nawslocal s3 ls s3://resized-images\n```\n\n## Run the tests\n\nYou can run tests using the Terraform Test framework:\n\n```bash\ntflocal test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalstack-samples%2Fterraform-tests-localstack-github-actions-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalstack-samples%2Fterraform-tests-localstack-github-actions-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalstack-samples%2Fterraform-tests-localstack-github-actions-ci/lists"}