- 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 |
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
swagger: '2.0' | |
info: | |
title: weather.gov API | |
description: | | |
# API Reference | |
We are excited to announce a brand new API to provide forecast data for your applications. This new design is a significant change with easier to navigate data to enrich your application. The new API is now separate from the forecast website. The new website will only return HTML for viewing within a browser. Additional security measures will be implemented to prevent improper usage of the website to ingest forecast data. The new website is now a lightweight presentation view that uses the same API to display the forecast. This same data will be available to you through the API. | |
version: 1.0.0 | |
host: api.weather.gov |
swagger: '2.0'
info:
title: weather.gov API
description: |
# Heading
Text attributes _italic_, *italic*, __bold__, **bold**, `monospace`.
Horizontal rule:
NewerOlder