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
#!/usr/bin/env bash | |
# | |
# aws-access-lister.sh | |
# | |
# This utility script can be used to maintain the Access List for | |
# a MongoDB Atlas Programatic API Key. For example, when running on AWS lambda | |
# the IP-address of the host is not know beforehand and thus it's not possible to | |
# securly configure an api key. This script will dynamically fetch a valid set of | |
# IP ranges directly from AWS and then either create a new apikey or modify an existing key |
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 = { | |
statusCode: 301, | |
headers: { | |
Location: 'https://google.com', | |
} | |
}; | |
return callback(null, response); | |
} |
#Test credit card numbers to use when developing with Stripe
4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)