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
// Index of some column that is not used. | |
var SENT_COLUMN = 15; | |
// Place your Grid API Key here. | |
var MAILGUN_KEY = "YOUR_MAILGUN_KEY" | |
// The emails will be send from here. | |
var EMAIL_FROM = "Company Name <[email protected]>"; | |
// Errors will be send here | |
var SUPPORT_EMAIL = "[email protected]"; | |
// Subject of the email | |
var SUBJECT = "EMAIL SUBJECT"; |
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
// Index of some column that is not used. | |
var SENT_COLUMN = 15; | |
// Place your Grid API Key here. | |
var MAILGUN_KEY = "YOUR_MAILGUN_KEY" | |
// The emails will be send from here. | |
var EMAIL_FROM = "Company Name <[email protected]>"; | |
// Errors will be send here | |
var SUPPORT_EMAIL = "[email protected]"; | |
// Subject of the email | |
var SUBJECT = "EMAIL SUBJECT"; |
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
# install aws cli first and configure it with credentials and default region | |
# the script will iterate over all regions of AWS | |
for region in `aws ec2 describe-regions --output text | cut -f4` | |
do | |
echo -e "\nListing Instances in region:'$region'..." | |
aws ec2 describe-instances --query "Reservations[*].Instances[*].{IP:PublicIpAddress,ID:InstanceId,Type:InstanceType,State:State.Name,Name:Tags[0].Value}" --output=table --region $region | |
done |