export AWS_DEFAULT_REGION=ap-northeast-1
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | \
awk '{print $2}' | grep -v ^$ | while read x; do echo "deleting $x" ; aws logs delete-log-group --log-group-name $x; done
This helps creating an AWS API GW with a POST
method on the root resource (i.e /
) targetting a given Lambda.
The current Terraform documentation is exposing a Mock integration. Thus, a few options are missing when wanting to expose a Lambda integration instead.
There are a few things to know:
First of all, you will need to add the integration_http_method
alongside the http_method
, as in:
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
'use strict'; | |
/* | |
* run promises in sequence, return an array of results. | |
* Returns a promise that resolves to an array of results, where funcs[i]() -> results[i] | |
*/ | |
function asyncSeries(...funcs) { | |
return aggregate([], funcs); | |
} |
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.
slow 3G # Slow network on default eth0 down to 3G wireless speeds
slow reset # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet with a high latency
slow dsl -b 1mbps # Simulate DSL with a slower speed than the default
slow modem-56k -d eth0 # Simulate a 56k modem on the eth1 device. eth0 is unchanged.