Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-subdomain

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-subdomain

Create subdomains for AWS without diving into the AWS SDK

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

aws-subdomain

Create subdomains for AWS without diving into the AWS SDK

NPM
Build Status Coverage Status

Usage

First install this module with npm install aws-subdomain --save.

var subdomain = require('aws-subdomain')({
  accessKeyId: 'your-id-here',
  secretAccessKey: 'your-secret-here',
});

subdomain.create('i.wear.sho.es', function (err, result) {
  // handle error/result
});

subdomain.delete('i.wear.sho.es', function (err, result) {
  // handle error/result
});

We will find the correct HostedZoneId based on the root domain, e.g. 'sho.es' and will create/delete the subdomain for you.

CLI

npm install aws-subdomain -g
aws-subdomain new.shiny.po.ny -i [awsAccessKeyId] -s [awsSecretAccessKey]

Can also pass -a with 'upsert', or 'delete'. The default is to 'create'.

By default the AWS credentials come from environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, but can be overridden with -i and -s respectively.

Test

npm test
# or for TAP output
node test

TODO

  • Add event for completion of change
  • Add upsert functions
  • Support promises
  • Add default baseDomain to options/integrate with actions.

Keywords

FAQs

Package last updated on 20 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc