This document outlines how to export CloudWatch Metrics to CSV.
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
import json | |
import boto3 | |
from email.parser import BytesParser | |
from email import policy | |
import os | |
def lambda_handler(event, context): | |
message = event['Records'][0]['Sns']['Message'] | |
print(type(message)) | |
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
#!/bin/bash | |
sudo yum update -y | |
amazon-linux-extras install -y nginx1.12 | |
sudo systemctl start nginx | |
sudo systemctl enable nginx | |
usermod -a -G nginx-user ec2-user | |
chown -R ec2-user:nginx-user /var/www | |
chmod 2775 /var/www | |
find /var/www -type d -exec chmod 2775 {} \; | |
find /var/www -type f -exec chmod 0664 {} \; |
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
# Update yum | |
sudo yum update | |
# Install latest version of zsh | |
sudo yum install zsh | |
# Validate the installation of zsh | |
zsh --version | |
# Amazon Linux on ARM ARM64 does not have chsh installed, we will fallback |
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
Andrew: Hey there, freedom fighters. My name is Andrew Warner. I’m the founder of Mixergy.com, home | |
of the ambitious upstart. The place where over a thousand of entrepreneurs have come to tell the | |
stories of how they built their businesses, had challenges along the way, overcame them, or not, | |
and mostly told you what they learned from it. And thousands and thousands and thousands of other | |
entrepreneurs have listened and learned, and used what they’ve learned from these interviews. | |
Today’s guest is David Baggett. He co-founded ITA software, a company that Google bought for a | |
reported $700 million. ITA makes software that’s the search engine behind sites like Kayak. It | |
actually figures out prices, time and other data like flights. |