npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

serverless-alb-manager

v1.0.3

Published

A Serverless plugin that adds an HTTP ALB to your serverless project instead of an API Gateway for HTTP functions.

Downloads

12

Readme

ALB Manager Serverless Plugin

CircleCI npm version license

This plugin adds an HTTP ALB to your serverless project instead of an API Gateway for HTTP functions.

About Schoology

Schoology, one of the fastest growing education technology companies, brings together the best K-12 learning management system with assessment management to improve student performance, foster collaboration, and personalize learning. Millions of students, faculty and administrators from over 60,000 K-12 schools worldwide use Schoology to advance what is possible in education.

We help solve the most important challenges in education in an environment that’s fun, collaborative and innovative. We are looking for smart, creative individuals who are passionate about education and aren't afraid to show it.

Learn more at https://www.schoology.com/careers.

Requirements

Tested with:

  • Node.js >= v8.10
  • Serverless Framework >= v1.45

Installation

  1. Using yarn:

    yarn add --dev serverless-alb-manager
  2. Add the plugin to your serverless.yml file:

    plugins:
      - serverless-alb-manager
  3. Add the plugin configuration to your serverless.yml file, for example:

      serverless-alb-manager:
        vpcId: vpc-1234
        subnetIds:
          - subnet-2345
          - subnet-3456
        tags:
          foo: fooValue
          bar: barValue
        certificateArn: "arn:aws:acm:us-east-1:4567:certificate/abcd-5678"
        domainName: alb.example.com

    |Parameter Name|Required|Description| |---|---|---| |vpcId|:heavy_check_mark:|The VPC in which the ALB should be created.| |subnetIds|:heavy_check_mark:|An array of subnet IDs to associate with the ALB. These subnets should belong to the configured vpcId.| |tags|:heavy_check_mark:|A map of tags for the ALB.| |certificateArn|:heavy_check_mark:|The AWS ACM certificate ARN to use for the HTTP listener.| |domainName|:heavy_check_mark:|The domain name that will be used to access the ALB. This should be valid for the given certificateArn.|

  4. Add alb event listeners to your serverless functions. The listenerArn will automatically be populated with the ALB listener created by this plugin. For example:

    functions:
      foo:
        handler: src/handler.foo
        events:
          - alb:
              # libraryArn is automatically populated
              priority: 1
              conditions:
                path: '/foo'
                method: GET
       bar:
        handler: src/handler.bar
        events:
          - alb:
              # libraryArn is automatically populated
              priority: 2
              conditions:
                path: '/bar'
                method: GET
      

Resource Created By This Plugin

|Type|Description| |---|---| |Security Group|ingress 443 from 0.0.0.0/0egress * to 0.0.0.0/0configurable VPC| |Application Load Balancer|ipv4configurable subnetconfigurable tags| |ALB Listener|default action HTTP 403 with JSON body { "error": "Forbidden" }configurable ACM certificate ARN| |Route53 DNS Record|Alias pointing to ALBConfigurable domain name|