AWS have released a new featue called CloudWatch Events, which lets you configure events fired by cloudwatch and direct them to SNS, Lambda functions, etc. Here's the blog post
Here's the motivational image:
curl -XDELETE http://localhost:9200/blog | |
curl -XPUT http://localhost:9200/blog -d '{ | |
"settings" : { | |
"index" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 0 | |
} | |
}, | |
"mapping": { |
curl -XDELETE http://localhost:9200/test/articles | |
curl -XPUT http://localhost:9200/test/_mapping/articles -d '{ | |
"properties": { | |
"content": { | |
"type": "string", | |
"position_offset_gap": 100 | |
} | |
} | |
}' |
curl -XPOST http://localhost:9200/test/articles/1 -d '{ | |
"content": "The quick brown fox" | |
}' | |
curl -XPOST http://localhost:9200/test/articles/2 -d '{ | |
"content": "What does the fox say?" | |
}' | |
curl -XPOST http://localhost:9200/test/articles/3 -d '{ | |
"content": "The quick brown fox jumped over the lazy dog" | |
}' | |
curl -XPOST http://localhost:9200/test/articles/4 -d '{ |
#!/bin/bash | |
set -x | |
TERRAFORM_VERSION="0.9.11" | |
PACKER_VERSION="1.0.2" | |
# install pip | |
pip install -U pip && pip3 install -U pip | |
if [[ $? == 127 ]]; then | |
wget -q https://bootstrap.pypa.io/get-pip.py |
AWS have released a new featue called CloudWatch Events, which lets you configure events fired by cloudwatch and direct them to SNS, Lambda functions, etc. Here's the blog post
Here's the motivational image:
# Mathieu Blondel, February 2012 | |
# License: BSD 3 clause | |
# Port to Python of examples in chapter 5 of | |
# "Introductory Statistics with R" by Peter Dalgaard | |
import numpy as np | |
from scipy.stats import ttest_1samp, wilcoxon, ttest_ind, mannwhitneyu | |
# daily intake of energy in kJ for 11 women |
#!/bin/bash -e | |
# This scripts installs jq: http://stedolan.github.io/jq/ | |
JQ=/usr/bin/jq | |
curl https://stedolan.github.io/jq/download/linux64/jq > $JQ && chmod +x $JQ | |
ls -la $JQ |
#!/usr/bin/python | |
import sys | |
import random | |
import string | |
def random_string(length): | |
pool = string.letters + string.digits | |
return (''.join(random.choice(pool) for i in xrange(length))).lower() |
This is quick howto for installing vault on AWS Linux, mostly to remind myself. At the end of this tutorial, you'll have a working vault server, using s3 for the backend, self signed certificates for tls, and supervisord to ensure that the vault server is always running, and starts on reboot.
First things first, let's set up an s3 bucket to use as the storage backend for our s3 instance.
From the AWS Mangement Console, go to the S3 console.
Click on the Create Bucket
button