{"id":20581827,"url":"https://github.com/paddlehq/go-aws-ssm","last_synced_at":"2025-04-14T20:05:13.701Z","repository":{"id":41796918,"uuid":"167336167","full_name":"PaddleHQ/go-aws-ssm","owner":"PaddleHQ","description":"Go package that interfaces with AWS System Manager","archived":false,"fork":false,"pushed_at":"2024-04-19T10:08:50.000Z","size":35,"stargazers_count":57,"open_issues_count":1,"forks_count":10,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-07-31T20:44:29.895Z","etag":null,"topics":["aws","golang","parameter-store","ssm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PaddleHQ.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":"2019-01-24T09:01:19.000Z","updated_at":"2024-07-30T20:50:15.000Z","dependencies_parsed_at":"2024-01-08T14:30:55.720Z","dependency_job_id":"42305a6c-de34-4c34-95f5-17d9437bd8bf","html_url":"https://github.com/PaddleHQ/go-aws-ssm","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaddleHQ%2Fgo-aws-ssm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaddleHQ%2Fgo-aws-ssm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaddleHQ%2Fgo-aws-ssm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaddleHQ%2Fgo-aws-ssm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaddleHQ","download_url":"https://codeload.github.com/PaddleHQ/go-aws-ssm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224884615,"owners_count":17386121,"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":["aws","golang","parameter-store","ssm"],"created_at":"2024-11-16T06:31:33.450Z","updated_at":"2024-11-16T06:32:04.431Z","avatar_url":"https://github.com/PaddleHQ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![codecov](https://codecov.io/gh/PaddleHQ/go-aws-ssm/branch/master/graph/badge.svg)](https://codecov.io/gh/PaddleHQ/go-aws-ssm)\n[![Go Report Card](https://goreportcard.com/badge/github.com/PaddleHQ/go-aws-ssm)](https://goreportcard.com/report/github.com/PaddleHQ/go-aws-ssm)\n[![GoDoc](https://godoc.org/github.com/PaddleHQ/go-aws-ssm?status.svg)](https://pkg.go.dev/github.com/PaddleHQ/go-aws-ssm)\n\n# go-aws-ssm\nGo package that interfaces with [AWS System Manager](https://www.amazonaws.cn/en/systems-manager/).\n\n## Why to use go-aws-ssm and not the aws-sdk-go?\nThis package is wrapping the aws-sdk-go and hides the complexity dealing with the not so Go friendly AWS SDK.\nPerfect use case for this package is when secure parameters for an application are stored to \n[AWS Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html)\nusing a path hierarchy. During application startup you can use this package to fetch them and use them in your application.\n\n## Install\n\n```bash\ngo get github.com/PaddleHQ/go-aws-ssm\n```\n\n## Examples \n\n#### Basic Usage\n\n```go\n        //Assuming you have the parameters in the following format:\n    \t//my-service/dev/param-1  -\u003e with value `a`\n    \t//my-service/dev/param-2  -\u003e with value `b`\n    \tpmstore, err := awsssm.NewParameterStore()\n    \tif err != nil {\n    \t\treturn err\n    \t}\n    \t//Requesting the base path\n    \tparams, err := pmstore.GetAllParametersByPath(\"/my-service/dev/\", true)\n    \tif err!=nil{\n    \t\treturn err\n    \t}\n    \t\n    \t//And getting a specific value\n    \tvalue:=params.GetValueByName(\"param-1\")\n    \t//value should be `a`\n    \t\n    \t\n```\n\n#### Integrates easily with [viper](https://github.com/spf13/viper)\n```go\n        //Assuming you have the parameters in the following format:\n     \t//my-service/dev/param-1  -\u003e with value `a`\n     \t//my-service/dev/param-2  -\u003e with value `b`\n     \tpmstore, err := awsssm.NewParameterStore()\n     \tif err != nil {\n     \t\treturn err\n     \t}\n     \t//Requesting the base path\n     \tparams, err := pmstore.GetAllParametersByPath(\"/my-service/dev/\", true)\n     \tif err!=nil{\n     \t\treturn err\n     \t}\n    \n    \t//Configure viper to handle it as json document, nothing special here!\n    \tv := viper.New()\n    \tv.SetConfigType(`json`)\n    \t//params object implements the io.Reader interface that is required\n    \terr = v.ReadConfig(params)\n    \tif err != nil {\n    \t\treturn err\n    \t}\n    \tvalue := v.Get(`param-1`)\n    \t//value should be `a`\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaddlehq%2Fgo-aws-ssm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaddlehq%2Fgo-aws-ssm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaddlehq%2Fgo-aws-ssm/lists"}