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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"ec2:Describe*" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
} |
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 ruby | |
require 'json' | |
### CloudFront Key Pair | |
KEY_PAIR_ID = "XXXXX" | |
PRIVATE_KEY = "pk-XXXXX.pem" | |
### Destination URL and RESOURCE for Policy | |
DST_URL = "https://xxxx.cloudfront.net/index.html" | |
RESOURCE = "http*://xxxx.cloudfront.net/index.html" |
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 ruby | |
require 'json' | |
require 'base64' | |
require 'openssl' | |
### CloudFront Key Pair | |
KEY_PAIR_ID = "XXXXX" | |
PRIVATE_KEY = "pk-XXXXX.pem" | |
### Destination URL and RESOURCE for Policy |
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 | |
set -x | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get --purge autoremove -y mysql-server-5.6 | |
curl -LO https://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb | |
echo mysql-apt-config mysql-apt-config/select-product select Apply | sudo debconf-set-selections |