Skip to content

Instantly share code, notes, and snippets.

{
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/opt/shibboleth-idp/logs/idp-audit.log",
"log_group_name": "<ENV>-/opt/shibboleth-idp/logs/idp-audit.log",
"log_stream_name": "{instance_id}"
@andyfase
andyfase / 1.CUR_Download.sh
Created August 28, 2017 21:47
CUR RI Analysis
#!/bin/bash
function do_help {
cat << _END
./cur dl <bucket_name> <report_path_including_month> <report_prefix> <optional_assume_role_profile>
_END
}
## INPUT Checking
if [[ $# < 3 ]]; then
@andyfase
andyfase / 1. Spot Fleet Docs.md
Last active August 26, 2017 21:29
Spot Fleet, Docs and code samples

Spot Fleet / ECS Training Overview

Components

Spot & Spot Fleet

What is Spot

AWS Spot is a AWS service which provides EC2 capacity at significant discounts. Savings of upto 80-90% can be achieved (vs on Demand pricing) utilizing Spot.

{
"Comment": "string",
"Changes": [
{
"Action": "CREATE",
"ResourceRecordSet": {
"Name": "myblog.mydomain.com",
"Type": "CNAME",
"TTL": 300,
"ResourceRecords": [
{
"CallerReference": "cf_my_blog",
"DefaultRootObject": "index.html",
"Origins": {
"Quantity": 1,
"Items": [
{
"Id": "myblog.s3.amazonaws.com",
"DomainName": "myblog.s3.amazonaws.com",
"S3OriginConfig": {
{
"Version":"2012-10-17",
"Id":"AndyAWSBlogS3CloudFrontPolicy",
"Statement":[
{
"Sid":" Grant a CloudFront Origin Identity access to support access to the bucket",
"Effect":"Allow",
"Principal":{"CanonicalUser":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"},
"Action":["s3:GetObject","s3:ListBucket"],
"Resource":["arn:aws:s3:::myblog/*", "arn:aws:s3:::myblog"]