{"id":23599962,"url":"https://github.com/zkfmapf123/terraform-donggyu-lambda","last_synced_at":"2025-10-11T12:34:44.265Z","repository":{"id":220528435,"uuid":"751880276","full_name":"zkfmapf123/terraform-donggyu-lambda","owner":"zkfmapf123","description":"terraform lambda template","archived":false,"fork":false,"pushed_at":"2024-12-16T09:49:56.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T11:38:27.994Z","etag":null,"topics":["deploy","iac","lambda","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/zkfmapf123.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":"2024-02-02T14:29:56.000Z","updated_at":"2024-12-16T09:50:35.000Z","dependencies_parsed_at":"2024-12-16T10:37:21.373Z","dependency_job_id":null,"html_url":"https://github.com/zkfmapf123/terraform-donggyu-lambda","commit_stats":null,"previous_names":["zkfmapf123/terraform-lee-lambda"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fterraform-donggyu-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fterraform-donggyu-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fterraform-donggyu-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fterraform-donggyu-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkfmapf123","download_url":"https://codeload.github.com/zkfmapf123/terraform-donggyu-lambda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449553,"owners_count":19640532,"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":["deploy","iac","lambda","terraform"],"created_at":"2024-12-27T11:37:04.008Z","updated_at":"2025-10-11T12:34:39.235Z","avatar_url":"https://github.com/zkfmapf123.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n- CLI를 활용하여 배포가 가능하도록 수정하였습니다.\n- \u003cb\u003eECR을 미리 생성하고 var.ecr_attr에 ecr registry를 입력해야 함\u003c/b\u003e\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | n/a |\n| \u003ca name=\"provider_null\"\u003e\u003c/a\u003e [null](#provider\\_null) | n/a |\n| \u003ca name=\"provider_random\"\u003e\u003c/a\u003e [random](#provider\\_random) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_iam_policy.lambda_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |\n| [aws_iam_role.lambda_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |\n| [aws_iam_role_policy_attachment.policy_attach](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |\n| [aws_lambda_function.function](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource |\n| [null_resource.build](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [random_string.random](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource |\n| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |\n| [aws_iam_policy_document.lambda_default_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_auto_deploy\"\u003e\u003c/a\u003e [auto\\_deploy](#input\\_auto\\_deploy) | 배포 옵션입니다. | `map` | \u003cpre\u003e{\u003cbr\u003e  \"is_enable\": false,\u003cbr\u003e  \"revision\": \"1.0.0\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_common_attr\"\u003e\u003c/a\u003e [common\\_attr](#input\\_common\\_attr) | 공통 옵션입니다. | `map` | \u003cpre\u003e{\u003cbr\u003e  \"name\": \"\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_compute_attr\"\u003e\u003c/a\u003e [compute\\_attr](#input\\_compute\\_attr) | lambda computing 옵션입니다. | `map` | \u003cpre\u003e{\u003cbr\u003e  \"architecture\": \"arm64\",\u003cbr\u003e  \"environments\": {\u003cbr\u003e    \"System\": \"lambda\"\u003cbr\u003e  },\u003cbr\u003e  \"logging_format\": \"JSON\",\u003cbr\u003e  \"memory\": 128,\u003cbr\u003e  \"timeout\": 10\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_ecr_attr\"\u003e\u003c/a\u003e [ecr\\_attr](#input\\_ecr\\_attr) | ecr 옵션입니다. | `map` | \u003cpre\u003e{\u003cbr\u003e  \"exists_ecr_registry\": \"\"\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_iam_attr\"\u003e\u003c/a\u003e [iam\\_attr](#input\\_iam\\_attr) | iam 옵션입니다. | `map` | \u003cpre\u003e{\u003cbr\u003e  \"policy\": {}\u003cbr\u003e}\u003c/pre\u003e | no |\n| \u003ca name=\"input_network_attr\"\u003e\u003c/a\u003e [network\\_attr](#input\\_network\\_attr) | lambda computing에 network 옵션입니다. | `map` | \u003cpre\u003e{\u003cbr\u003e  \"sg_ids\": [],\u003cbr\u003e  \"subnet_ids\": [],\u003cbr\u003e  \"vpc_id\": null\u003cbr\u003e}\u003c/pre\u003e | no |\n\n## Outputs\n\nNo outputs.\n\u003c!-- END_TF_DOCS --\u003e\n\n## Docker Image Examples\n\n### Javascript\n\n```Dockerfile\nFROM public.ecr.aws/lambda/nodejs:20\nCOPY index.js ${LAMBDA_TASK_ROOT}\nCMD [ \"index.handler\" ]\n```\n\n```javascript\nexports.handler = async (event) =\u003e {\n  const response = {\n    statusCode: 200,\n    body: JSON.stringify(\"Hello from Lambda!\"),\n  };\n  return response;\n};\n```\n\n### Golang\n\n```Dockerfile\nFROM golang:1.23 as build\nWORKDIR /app\n\nCOPY go.mod go.sum ./\n\nCOPY main.go .\nRUN go build -tags lambda.norpc -o main main.go\n\nFROM public.ecr.aws/lambda/provided:al2023\nCOPY --from=build /app/main ./main\nENTRYPOINT [ \"./main\" ]\n```\n\n```golang\npackage main\n\nimport (\n        \"context\"\n        \"encoding/json\"\n        \"fmt\"\n\n        \"github.com/aws/aws-lambda-go/lambda\"\n)\n\n\nfunc HandleRequest(ctx context.Context, e json.RawMessage) (string, error) {\n\n        fmt.Println(\"Event : \", string(e))\n        return \"hello world-1\", nil\n}\n\nfunc main() {\n        lambda.Start(HandleRequest)\n}\n```\n\n## Issue\n\n### Docker Pull 이슈\n\n```sh\nERROR: failed to solve: public.ecr.aws/lambda/python:3.8: pulling from host public.ecr.aws failed with status code: 403 Forbidden\n```\n\n- AWS Public 이미지는 따로 로그인을 실행해야 함\n\n```sh\naws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fterraform-donggyu-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkfmapf123%2Fterraform-donggyu-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fterraform-donggyu-lambda/lists"}