{"id":24510730,"url":"https://github.com/rhdeck/serverless-setup","last_synced_at":"2025-07-28T10:41:41.124Z","repository":{"id":104234463,"uuid":"156576999","full_name":"rhdeck/serverless-setup","owner":"rhdeck","description":"Utility for setting up serverless config","archived":false,"fork":false,"pushed_at":"2020-10-07T18:40:22.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T03:05:02.779Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/rhdeck.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":"2018-11-07T16:36:19.000Z","updated_at":"2020-10-07T18:40:24.000Z","dependencies_parsed_at":"2023-08-08T13:20:28.680Z","dependency_job_id":null,"html_url":"https://github.com/rhdeck/serverless-setup","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":0.02631578947368418,"last_synced_commit":"bc87245e303989aed102072ace2eea2ceb6b7630"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rhdeck/serverless-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fserverless-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fserverless-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fserverless-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fserverless-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhdeck","download_url":"https://codeload.github.com/rhdeck/serverless-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Fserverless-setup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267503726,"owners_count":24098333,"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-07-28T02:00:09.689Z","response_time":68,"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":"2025-01-22T00:30:39.658Z","updated_at":"2025-07-28T10:41:41.099Z","avatar_url":"https://github.com/rhdeck.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ca name=\"__climd\"\u003e\u003c/a\u003e\n\n# Usage\n```bash\nserverless-setup [options]\n```\n# Options\n* -p --currentPath \\\u003c`pathname`\u003e Reference path for examining a serverlesss setup (default: .\n* -t --stage \\\u003c`stage`\u003e Stack stage to check against. Defaul value is dev (default: dev\n* -a --aws-profile \\\u003c`profile`\u003e Named AWS Profile \n* -f --file-name [filename] File to write output (default config.json) (default: config.json\n* -s --standard-output Write to standard output instead of config.json \n* -n --stack-name \\\u003c`stackname`\u003e Name of the stack/application (e.g. privilege, test-a, etc) \n* -r --region \\\u003c`region`\u003e Region to pass to serverless commands \n\n\u003ca name=\"librarymd\"\u003e\u003c/a\u003e\n\n\n# @raydeck/serverless-setup - v3.1.0\n\n## Index\n\n### Variables\n\n* [cachedAccountId](#let-cachedaccountid)\n\n### Functions\n\n* [getAccountID](#const-getaccountid)\n* [makeConfig](#const-makeconfig)\n* [writeConfig](#const-writeconfig)\n\n## Variables\n\n### `Let` cachedAccountId\n\n• **cachedAccountId**: *string | undefined*\n\n*Defined in [index.ts:8](https://github.com/rhdeck/serverless-setup/blob/8da9d7d/src/index.ts#L8)*\n\n## Functions\n\n### `Const` getAccountID\n\n▸ **getAccountID**(): *Promise‹string›*\n\n*Defined in [index.ts:9](https://github.com/rhdeck/serverless-setup/blob/8da9d7d/src/index.ts#L9)*\n\n**Returns:** *Promise‹string›*\n\n___\n\n### `Const` makeConfig\n\n▸ **makeConfig**(`__namedParameters`: object): *Promise‹object›*\n\n*Defined in [index.ts:16](https://github.com/rhdeck/serverless-setup/blob/8da9d7d/src/index.ts#L16)*\n\n**Parameters:**\n\n▪ **__namedParameters**: *object*\n\nName | Type | Default |\n------ | ------ | ------ |\n`awsProfile` | undefined \u0026#124; string | - |\n`cmd` | cmd | - |\n`currentPath` | string | process.cwd() |\n`fromName` | string | - |\n`getMyResources` | boolean | false |\n`ignoreResources` | boolean | false |\n`region` | undefined \u0026#124; string | - |\n`stage` | string | \"dev\" |\n\n**Returns:** *Promise‹object›*\n\n___\n\n### `Const` writeConfig\n\n▸ **writeConfig**(`fromObject`: object, `toPath`: string, `fileName`: string): *boolean*\n\n*Defined in [index.ts:109](https://github.com/rhdeck/serverless-setup/blob/8da9d7d/src/index.ts#L109)*\n\n**Parameters:**\n\nName | Type | Default |\n------ | ------ | ------ |\n`fromObject` | object | - |\n`toPath` | string | process.cwd() |\n`fileName` | string | \"config.json\" |\n\n**Returns:** *boolean*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Fserverless-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhdeck%2Fserverless-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Fserverless-setup/lists"}