{"id":15383635,"url":"https://github.com/knownasilya/aws-subdomain","last_synced_at":"2025-04-15T19:54:26.990Z","repository":{"id":23464992,"uuid":"26829185","full_name":"knownasilya/aws-subdomain","owner":"knownasilya","description":"Create subdomains for AWS without diving into the AWS SDK","archived":false,"fork":false,"pushed_at":"2023-01-06T18:22:28.000Z","size":603,"stargazers_count":8,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T19:54:22.102Z","etag":null,"topics":["aws","dns","nodejs","route53","subdomain"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knownasilya.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-18T20:45:55.000Z","updated_at":"2023-11-20T08:09:25.000Z","dependencies_parsed_at":"2023-01-13T23:20:40.791Z","dependency_job_id":null,"html_url":"https://github.com/knownasilya/aws-subdomain","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownasilya%2Faws-subdomain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownasilya%2Faws-subdomain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownasilya%2Faws-subdomain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knownasilya%2Faws-subdomain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knownasilya","download_url":"https://codeload.github.com/knownasilya/aws-subdomain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145296,"owners_count":21219966,"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","dns","nodejs","route53","subdomain"],"created_at":"2024-10-01T14:39:03.300Z","updated_at":"2025-04-15T19:54:26.972Z","avatar_url":"https://github.com/knownasilya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-subdomain\n\nCreate subdomains for AWS without diving into the AWS SDK\n\n[![NPM][npm-badge]][npm-badge-url]  \n[![Build Status][travis-badge]][travis-badge-url]\n[![Coverage Status][coveralls-badge]][coveralls-badge-url]\n\n## Usage\n\nFirst install this module with `npm install aws-subdomain --save`.\n\n```js\nvar subdomain = require('aws-subdomain')({\n  accessKeyId: 'your-id-here',\n  secretAccessKey: 'your-secret-here',\n});\n\nsubdomain.create('i.wear.sho.es', function (err, result) {\n  // handle error/result\n});\n\nsubdomain.delete('i.wear.sho.es', function (err, result) {\n  // handle error/result\n});\n```\n\nWe will find the correct HostedZoneId based on the root domain, e.g. 'sho.es'\nand will create/delete the subdomain for you.\n\n## CLI\n\n```shell\nnpm install aws-subdomain -g\naws-subdomain new.shiny.po.ny -i [awsAccessKeyId] -s [awsSecretAccessKey]\n```\n\nCan also pass `-a` with 'upsert', or 'delete'. The default is to 'create'.\n\nBy default the AWS credentials come from environment variables\n`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, but can be\noverridden with `-i` and `-s` respectively.\n\n## Test\n\n```shell\nnpm test\n# or for TAP output\nnode test\n```\n\n## TODO\n\n- Add event for completion of change\n- Add upsert functions\n- Support promises\n- Add default `baseDomain` to options/integrate with actions.\n\n[travis-badge-url]: https://travis-ci.org/knownasilya/aws-subdomain\n[travis-badge]: https://travis-ci.org/knownasilya/aws-subdomain.svg?branch=master\n[npm-badge-url]: https://nodei.co/npm/aws-subdomain/\n[npm-badge]: https://nodei.co/npm/aws-subdomain.png?downloads=true\u0026stars=true\n[coveralls-badge]: https://coveralls.io/repos/knownasilya/aws-subdomain/badge.svg?branch=master\n[coveralls-badge-url]: https://coveralls.io/r/knownasilya/aws-subdomain?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknownasilya%2Faws-subdomain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknownasilya%2Faws-subdomain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknownasilya%2Faws-subdomain/lists"}