Name: https-headers-lambda
Owner: NPR visuals team
Description: Lambda@edge function to add https headers to our apps
Created: 2017-03-02 16:49:47.0
Updated: 2017-03-02 20:19:28.0
Pushed: 2017-03-27 19:21:49.0
Homepage: null
Size: 3
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
AWS lambda@edge function to include https headers on our apps projects.
This is a work in progress repo.
The following things are assumed to be true in this documentation.
For more details on the technology stack used with the app-template, see our development environment blog post.
The project contains the following folders and important files:
code
– Where are lambda function code livestest
– local tests to check that our code runs locallyfabfile.py
– Fabric commands for automating setup and deploymentrequirements.txt
– Python requirements.To bootstrap the project:
ttps-headers-lambda
rtualenv https-headers-lambda
install -r requirements.txt
Review the code for your lambda function
Create a function in your AWS lambda environment.
Finally run:
deploy:function=FUNCTION_NAME
Where FUNCTION_NAME
is the name of the created lambda function