I hereby claim:
-
I am bboure on github.
-
I am bboure (https://keybase.io/bboure) on keybase.
-
I have a public key ASCcEctzFqLLwqfrHtKgYAZVjb4nKWGy2Qx-gVbGrYoHXwo
I hereby claim:
I am bboure on github.
I am bboure (https://keybase.io/bboure) on keybase.
I have a public key ASCcEctzFqLLwqfrHtKgYAZVjb4nKWGy2Qx-gVbGrYoHXwo
acce, ac, acces | |
acces, ac, acceso | |
aceq, ae, acequia | |
acera, aa, acera | |
alam, al, alameda | |
aldap, ct, aldapa | |
aldea, ad, aldea | |
alque, aq, alqueria | |
alto, at, alto | |
andad, an, andador |
{ | |
"additional_data": { | |
"elevation": "/data/valhalla/elevation/" | |
}, | |
"httpd": { | |
"service": { | |
"interrupt": "ipc:///tmp/interrupt", | |
"listen": "tcp://*:8002", | |
"loopback": "ipc:///tmp/loopback" | |
} |
service: | |
name: appsync-long-cache | |
plugins: | |
- serverless-appsync-plugin | |
provider: | |
name: aws | |
custom: |
{ | |
"version": "2018-05-29", | |
"method": "GET", | |
"params": { | |
"query": { | |
"action": "query", | |
"format": "json", | |
"prop": "extracts", | |
"exintro": "true", | |
"titles": "${ctx.args.title}", |
type Query { | |
wikipedia(title: ID!): String! | |
} | |
schema { | |
query: Query | |
} |
#if($ctx.result.statusCode == 200) | |
#set($body = $utils.parseJson($ctx.result.body)) | |
#foreach ($page in $body.query.pages.entrySet()) | |
#if ($page.value.title == $ctx.args.title) | |
#return($page.value.extract) | |
#end | |
#end | |
$utils.error("Article not found", "NotFound") | |
#else | |
$utils.error($ctx.result.statusCode, "Error") |
mappingTemplates: | |
- type: Query | |
field: wikipedia | |
kind: PIPELINE | |
functions: | |
- fetchFromCache | |
- fetchWikipedia | |
- saveToCache | |
dataSources: |
const AWS = require('aws-sdk'); | |
const { gunzipSync } = require('zlib'); | |
AWS.config.update({ region: 'eu-west-1' }); | |
const dynamoDbClient = new AWS.DynamoDB(); | |
dynamoDbClient.getItem({ | |
"TableName": "blog", | |
"ReturnConsumedCapacity": "TOTAL", | |
"Key": { |
aws stepfunctions list-executions \ | |
--state-machine-arn [sf-arn] \ | |
--status-filter RUNNING \ | |
--query "executions[*].{executionArn:executionArn}" \ | |
--output text | \ | |
xargs -I {} aws stepfunctions stop-execution \ | |
--execution-arn {} |