- DynamoDB is schemaless
- use DynamoDb Stream when item is updated to primary table and also inserted into a secondary table
- When looking for a good partition key use one with Automatically generated GUID
- If large table, use queries instead of scans
- In order to work with search queuries:
- Specify a key condition expression in the query
- Specify a partition key name and value in the equality condition
Req id:
parse @message '(*) *' as reqId, message
| filter reqId like "c19dd3fc-5f27-11e9-a823-930d231e2ab8"
| sort @timestamp asc
| limit 50
Status code:
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
___ _____ ___ _ _ __ _ _ ___ _ _ ___ _ _ _ | |
/_\ \ / / __| ___ / __|___ _ _| |_(_)/ _(_)___ __| | / __| ___ __ _ _ _ _(_) |_ _ _ / __|_ __ ___ __(_)__ _| | |_ _ _ | |
/ _ \ \/\/ /\__ \ |___| | (__/ -_) '_| _| | _| / -_) _` | \__ \/ -_) _| || | '_| | _| || | \__ \ '_ \/ -_) _| / _` | | _| || | | |
/_/ \_\_/\_/ |___/ \___\___|_| \__|_|_| |_\___\__,_| |___/\___\__|\_,_|_| |_|\__|\_, | |___/ .__/\___\__|_\__,_|_|\__|\_, | | |
|__/ |_| |__/ | |
Notes taken in Mar-2018, from acloud.guru and AWS FAQ | |
___ _ _ _ __ _ | |
/ __| ___ __ _ _ _ _(_) |_ _ _ / |/ \/ | |
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
filter @type = "REPORT" | |
| stats | |
avg(@billedDuration) as Average, | |
percentile(@billedDuration, 99) as NinetyNinth, | |
percentile(@billedDuration, 95) as NinetyFifth, | |
percentile(@billedDuration, 90) as Ninetieth | |
by bin(30m) |
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
/** | |
* AWS Lambda (Node) - Using Insight API to Query your Cloudwatch Log for Daily Error Report | |
* @author Zeno Yu <zeno.yu@gmail.com> | |
*/ | |
const AWS = require('aws-sdk'); | |
var cloudwatchlogs = new AWS.CloudWatchLogs(); | |
exports.handler = async (event) => { | |
// Cloudwatch Log Group name |
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
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
NewerOlder