Created
May 15, 2019 03:39
-
-
Save wipiano/64f81fac0e781cde5e222b7564bea2af to your computer and use it in GitHub Desktop.
lambda @edge redirect sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = (event, context, callback) => { | |
const response = { | |
status: '302', | |
statusDescription: 'Found', | |
headers: { | |
location: [{ | |
key: 'Location', | |
value: '{url}', | |
}], | |
}, | |
}; | |
callback(null, response); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment