{"id":15468572,"url":"https://github.com/winebarrel/secretlamb","last_synced_at":"2025-04-22T11:29:24.112Z","repository":{"id":221000683,"uuid":"753102839","full_name":"winebarrel/secretlamb","owner":"winebarrel","description":"Golang library for using AWS Parameters and Secrets Lambda Extension.","archived":false,"fork":false,"pushed_at":"2024-11-25T05:22:55.000Z","size":53,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-02T10:00:03.321Z","etag":null,"topics":["golang","lambda","parameterstore","secretsmanager"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winebarrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05T13:29:49.000Z","updated_at":"2024-11-25T05:22:59.000Z","dependencies_parsed_at":"2024-04-29T06:36:21.491Z","dependency_job_id":"20c77bf5-5c18-407b-8b03-beae3b0717b5","html_url":"https://github.com/winebarrel/secretlamb","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.2857142857142857,"last_synced_commit":"18822282a3ef4f6a24641a8c262d6a032a443e6a"},"previous_names":["winebarrel/secretlamb"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsecretlamb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsecretlamb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsecretlamb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winebarrel%2Fsecretlamb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winebarrel","download_url":"https://codeload.github.com/winebarrel/secretlamb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250231529,"owners_count":21396474,"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":["golang","lambda","parameterstore","secretsmanager"],"created_at":"2024-10-02T01:41:38.744Z","updated_at":"2025-04-22T11:29:24.091Z","avatar_url":"https://github.com/winebarrel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# secretlamb\n\n[![CI](https://github.com/winebarrel/secretlamb/actions/workflows/ci.yml/badge.svg)](https://github.com/winebarrel/secretlamb/actions/workflows/ci.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/winebarrel/secretlamb.svg)](https://pkg.go.dev/github.com/winebarrel/secretlamb)\n[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/winebarrel/secretlamb)](https://github.com/winebarrel/secretlamb/tags)\n[![Go Report Card](https://goreportcard.com/badge/github.com/winebarrel/secretlamb)](https://goreportcard.com/report/github.com/winebarrel/secretlamb)\n\nGolang library for using AWS Parameters and Secrets Lambda Extension.\n\n- [Using Parameter Store parameters in AWS Lambda functions - AWS Systems Manager](https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-integration-lambda-extensions.html)\n- [Use AWS Secrets Manager secrets in AWS Lambda functions - AWS Secrets Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_lambda.html)\n\n## Installation\n\n```sh\ngo get github.com/winebarrel/secretlamb\n```\n\n## Usage\n\n### Parameter Store\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/aws/aws-lambda-go/lambda\"\n\t\"github.com/winebarrel/secretlamb\"\n)\n\nfunc HandleRequest(ctx context.Context, event any) (*string, error) {\n\tclient := secretlamb.MustNewParameters() // .WithRetry(3)\n\n\tv, err := client.Get(\"foo\")\n\t//v, err := client.GetWithDecryption(\"foo\")\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfmt.Println(v.Parameter.Value)\n\treturn nil, nil\n}\n\nfunc main() {\n\tlambda.Start(HandleRequest)\n}\n```\n\n### Secrets Manager\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/aws/aws-lambda-go/lambda\"\n\t\"github.com/winebarrel/secretlamb\"\n)\n\nfunc HandleRequest(ctx context.Context, event any) (*string, error) {\n\tclient := secretlamb.MustNewSecrets() // .WithRetry(3)\n\tv, err := client.Get(\"foo\")\n\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tfmt.Println(v.SecretString)\n\treturn nil, nil\n}\n\nfunc main() {\n\tlambda.Start(HandleRequest)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fsecretlamb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinebarrel%2Fsecretlamb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinebarrel%2Fsecretlamb/lists"}