1 - Find all logs for a given request ID or X-Ray trace ID
fields @timestamp, @message
| filter @message like /REQUEST_ID_GOES_HERE/
2 - Find 50 most recent errors
filter @message like /(?i)(Exception|error|fail)/
| fields @timestamp, @message
1 - Find all logs for a given request ID or X-Ray trace ID
fields @timestamp, @message
| filter @message like /REQUEST_ID_GOES_HERE/
2 - Find 50 most recent errors
filter @message like /(?i)(Exception|error|fail)/
| fields @timestamp, @message
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"cellView": "form", | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, |
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"apigateway:*", | |
"cloudformation:CancelUpdateStack", | |
"cloudformation:ContinueUpdateRollback", | |
"cloudformation:CreateChangeSet", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", |
const AWS = require('aws-sdk') | |
const docClient = new AWS.DynamoDB.DocumentClient() | |
const mapKeys = (input, transform) => { | |
const output = {} | |
Object.keys(input).forEach((key, index, array) => { | |
output[transform(key, index, array)] = input[key] | |
}) | |
return output |
// dependencies | |
var async = require('async'); | |
var path = require('path'); | |
var AWS = require('aws-sdk'); | |
var gm = require('gm').subClass({ | |
imageMagick: true | |
}); | |
var util = require('util'); | |
var LambdaWatermark = require('lambda-watermark'); |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.
<?php | |
/** | |
*Reduce the strength requirement on the woocommerce password. | |
* | |
* Strength Settings | |
* 3 = Strong (default) | |
* 2 = Medium | |
* 1 = Weak | |
* 0 = Very Weak / Anything | |
*/ |
docker-machine create \ | |
--driver=digitalocean \ | |
--digitalocean-access-token=$DO_TOKEN \ | |
--digitalocean-size=512mb \ | |
--digitalocean-region=nyc3 \ | |
--digitalocean-private-networking=true \ | |
--digitalocean-image=ubuntu-15-04-x64 \ | |
docker-swarm-kv-store | |
docker $(docker-machine config docker-swarm-kv-store) run -d \ |
Requires
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc