{"id":18632305,"url":"https://github.com/go-serverless/serverless-iam-dynamodb","last_synced_at":"2026-05-01T06:34:10.027Z","repository":{"id":144338151,"uuid":"230600117","full_name":"go-serverless/serverless-iam-dynamodb","owner":"go-serverless","description":"Building serverless CRUD services in Go with DynamoDB","archived":false,"fork":false,"pushed_at":"2021-10-16T04:11:02.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-17T11:08:10.478Z","etag":null,"topics":["api-gateway","aws","crud","dynamodb","golang","lambda","serverless","serverless-crud-services"],"latest_commit_sha":null,"homepage":"https://wingk-wong.blogspot.com/2020/03/building-serverless-crud-services-in-go.html","language":"Go","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/go-serverless.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":"2019-12-28T11:21:31.000Z","updated_at":"2023-06-25T13:53:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe979082-00f0-46d9-b4e2-1908f043ab2b","html_url":"https://github.com/go-serverless/serverless-iam-dynamodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/go-serverless/serverless-iam-dynamodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-serverless%2Fserverless-iam-dynamodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-serverless%2Fserverless-iam-dynamodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-serverless%2Fserverless-iam-dynamodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-serverless%2Fserverless-iam-dynamodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-serverless","download_url":"https://codeload.github.com/go-serverless/serverless-iam-dynamodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-serverless%2Fserverless-iam-dynamodb/sbom","scorecard":{"id":432442,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-serverless/serverless-iam-dynamodb","commit":"6333231bb51f06dd3a728194a142cacca00aee36"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.4,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2020-0017 / GHSA-w73w-5m7g-f7qc","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T03:41:39.575Z","repository_id":144338151,"created_at":"2025-08-19T03:41:39.575Z","updated_at":"2025-08-19T03:41:39.575Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["api-gateway","aws","crud","dynamodb","golang","lambda","serverless","serverless-crud-services"],"created_at":"2024-11-07T05:11:34.903Z","updated_at":"2026-05-01T06:34:10.009Z","avatar_url":"https://github.com/go-serverless.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-iam-dynamodb\nBuilding serverless CRUD services in Go with DynamoDB\n\n## Project structure\n/.serverless \n\nIt will be created automatically when running ``serverless deploy`` in where deployment zip files, cloudformation stack files will be generated\n\n/bin\n\nThis is the folder where our built Go codes are placed\n\n/scripts\n\nGeneral scripts for building Go codes and deployment\n\n/src/handlers\n\nAll Lambda handlers will be placed here\n\n/src/utils\n\nGeneral functions go here\n\n## Prerequisites\n\nInstall serverless cli\n```\nnpm install -g serverless\n```\n\nInstall aws cli \n```\npip install awscli\n```\n\nSetup your aws credentials\n```\naws configure\n```\n\nOf course you need to install [Go](https://golang.org/doc/install)\n\n## Getting started\n\u003e By default, a custom authorizer has been enabled for ``create``, ``list``, ``update``, ``delete`` and ``get``. Please replace ``\u003cYOUR_JWT_SECRET_KEY\u003e`` with your JWT Secret Key in serverless.yml (Line 35).  \n\n### Building the code\nThis script compiles functions to ``bin/handlers/``. \n```\n./scripts/build.sh\n```\n\n### Deploying to AWS\nThis script includes the build script and triggers serverless deploy, which will create/update a single CloudFormation stack to provision/update corresponding resources.\n```\n./scripts/deploy.sh\n```\n\nYou should see something like \n\n```bash\n************************************************\n* Building ...                                  \n************************************************\n************************************************\n* Compiling functions to bin/handlers/ ...      \n************************************************\n* Compiled authHandler\n* Compiled createHandler\n* Compiled deleteHandler\n* Compiled getHandler\n* Compiled listHandler\n* Compiled loginHandler\n* Compiled updateHandler\n************************************************\n* Formatting Code ...                           \n************************************************\ncreateHandler.go\n************************************************\n* Build Completed                               \n************************************************\n************************************************\n* Deploying ...                                 \n************************************************\nServerless: Packaging service...\nServerless: Excluding development dependencies...\nServerless: Excluding development dependencies...\nServerless: Excluding development dependencies...\nServerless: Excluding development dependencies...\nServerless: Excluding development dependencies...\nServerless: Excluding development dependencies...\nServerless: Excluding development dependencies...\nServerless: Uploading CloudFormation file to S3...\nServerless: Uploading artifacts...\nServerless: Uploading service auth.zip file to S3 (5.23 MB)...\nServerless: Uploading service list.zip file to S3 (7.2 MB)...\nServerless: Uploading service create.zip file to S3 (7.42 MB)...\nServerless: Uploading service get.zip file to S3 (7.2 MB)...\nServerless: Uploading service login.zip file to S3 (7.23 MB)...\nServerless: Uploading service delete.zip file to S3 (7.14 MB)...\nServerless: Uploading service update.zip file to S3 (7.45 MB)...\nServerless: Validating template...\nServerless: Updating Stack...\nServerless: Checking Stack update progress...\n........................\nServerless: Stack update finished...\nService Information\nservice: serverless-iam-dynamodb\nstage: dev\nregion: ap-southeast-1\nstack: serverless-iam-dynamodb-dev\nresources: 47\napi keys:\n  None\nendpoints:\n  GET - https://\u003chash\u003e.execute-api.ap-southeast-1.amazonaws.com/dev/iam\n  POST - https://\u003chash\u003e.execute-api.ap-southeast-1.amazonaws.com/dev/iam\n  PATCH - https://\u003chash\u003e.execute-api.ap-southeast-1.amazonaws.com/dev/iam/{id}\n  DELETE - https://\u003chash\u003e.execute-api.ap-southeast-1.amazonaws.com/dev/iam/{id}\n  POST - https://\u003chash\u003e.execute-api.ap-southeast-1.amazonaws.com/dev/iam/login\n  GET - https://\u003chash\u003e.execute-api.ap-southeast-1.amazonaws.com/dev/iam/{id}\nfunctions:\n  auth: serverless-iam-dynamodb-dev-auth\n  list: serverless-iam-dynamodb-dev-list\n  create: serverless-iam-dynamodb-dev-create\n  update: serverless-iam-dynamodb-dev-update\n  delete: serverless-iam-dynamodb-dev-delete\n  login: serverless-iam-dynamodb-dev-login\n  get: serverless-iam-dynamodb-dev-get\nlayers:\n  None\nServerless: Removing old service artifacts from S3...\nServerless: Run the \"serverless\" command to setup monitoring, troubleshooting and testing\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-serverless%2Fserverless-iam-dynamodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-serverless%2Fserverless-iam-dynamodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-serverless%2Fserverless-iam-dynamodb/lists"}