Skip to content

a little package that takes an unsecured url and makes it secure

Notifications You must be signed in to change notification settings

walidelnozahy/secure-my-backend

Repository files navigation

Secure your backend with aws

A little package that takes an unsecured url and makes it secure using aws's api gateway.

Usage

You need to create an aws account (if you don’t have one already)

npm install --save @walidelnozahy/secure

then simply just call secure http://example.com in your terminal

secure http://example.com

// https://id.execute-api.us-west-1.amazonaws.com/dev

How it works

Steps needed to secure the endpoint with api gateway are:

1. Create new rest api.
2. Get resources for the created rest api (to get parent id).
3. Create resource (with parent id).
4. Put method with created resource id and request params.
5. Put method with parent id.
6. Put integration for the resource id.
7. Put integration for the parent id.
8. Create deployment.
9. Create stage.

About

a little package that takes an unsecured url and makes it secure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published