{"id":13755219,"url":"https://github.com/onebeyond/systemic-aws-secrets-manager","last_synced_at":"2025-08-22T15:07:01.948Z","repository":{"id":146756142,"uuid":"347121887","full_name":"onebeyond/systemic-aws-secrets-manager","owner":"onebeyond","description":"A Systemic component for the AWS SecretsManager SDK v3.","archived":false,"fork":false,"pushed_at":"2023-07-19T10:44:09.000Z","size":158,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-08-17T02:57:58.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/onebeyond.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-03-12T16:03:30.000Z","updated_at":"2023-01-27T08:14:43.000Z","dependencies_parsed_at":"2024-01-13T03:12:10.111Z","dependency_job_id":null,"html_url":"https://github.com/onebeyond/systemic-aws-secrets-manager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onebeyond/systemic-aws-secrets-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-aws-secrets-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-aws-secrets-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-aws-secrets-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-aws-secrets-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onebeyond","download_url":"https://codeload.github.com/onebeyond/systemic-aws-secrets-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-aws-secrets-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271657726,"owners_count":24797935,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"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":"2024-08-03T10:00:49.100Z","updated_at":"2025-08-22T15:07:01.921Z","avatar_url":"https://github.com/onebeyond.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":[],"readme":"[![Maintainability](https://api.codeclimate.com/v1/badges/86ff1ad4ab2cdb73669c/maintainability)](https://codeclimate.com/github/onebeyond/systemic-aws-secrets-manager/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/86ff1ad4ab2cdb73669c/test_coverage)](https://codeclimate.com/github/onebeyond/systemic-aws-secrets-manager/test_coverage)\n\n# Systemic AWS S3\n\nA [Systemic](https://guidesmiths.github.io/systemic/#/) component for the [AWS SecretsManager SDK v3](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).\n\n## How to use it\n\n### Configuration\n\nA typical, simple configuration looks like this:\n\n```json\n{\n  \"region\": \"us-east-1\",\n  \"credentials\": {\n    \"secretAccessKey\": \"test\",\n    \"accessKeyId\": \"test\"\n  }\n}\n```\n\n[Here](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/secretsmanager.html) you can find the complete configuration interface of SecretsmManager class constructor that set the region, credentials and other options.\n\n### Initialize the component\n\nAs with any other [Systemic component](https://guidesmiths.github.io/systemic/#/?id=components), you can run it with the `start` method:\n\n```js\nconst initAWSSecretsManager = require('systemic-aws-secrets-manager');\nconst { start } = initAWSSecretsManager();\n\nconst api = await start({ config }); // configuration similar to the one above\n```\n\n### Call the API commands\n\nAs the AWS API has dozens of commands, intead of having one wrapper for each of them, the component exposes one single command `commandExecutor` that can be used to call any of the commands exposed by the api:\n\nFor example, to list all the objects in a specific bucket:\n\n```js\nconst getSecretValueConfig = {\n  commandParams: { SecretId: secretId },\n  commandName: 'getSecretValue'\n}\nconst res = await api.commandExecutor(getSecretValueConfig);\n```\n\nYou can check all the available commands [here](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/secretsmanager.html).\n\n### Custom commands\n\nIn the future, this component will also expose some custom commands not supported by the official API.\n\n## Guide for developers\n\n### How to test it\n\nYou can test the whole test suite running one of these commands:\n\n```bash\n# all tests will be executed once\nnpm run test\n\n# tests will be executed every time code changes (useful when coding)\nnpm run test:watch\n```\n\nIn case that you want to just execute a certain test case, you can also use these scripts to up / tear down the infra.\n\n```bash\nnpm run infra:up\nnpm run infra:down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonebeyond%2Fsystemic-aws-secrets-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonebeyond%2Fsystemic-aws-secrets-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonebeyond%2Fsystemic-aws-secrets-manager/lists"}