Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the function in aws-node-express-dynamodb-api example to be idempotent #658

Closed
wants to merge 1,309 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1309 commits
Select commit Hold shift + click to select a range
d019021
Merge pull request #457 from somq/fix-aws-python-pynamodb-s3-sigurl-o…
eahefnawy Mar 23, 2020
f13c9d8
Merge pull request #451 from jmpfrazao/aws-node-typescript-sqs-standard
eahefnawy Mar 23, 2020
82a8468
Merge pull request #448 from gsweene2/aws-python-rest-api-with-pymongo
eahefnawy Mar 23, 2020
5e07fb3
Merge pull request #424 from knugie/patch-1
eahefnawy Mar 23, 2020
7613d3b
Fix title
NSpehler Mar 28, 2020
4e7b289
Merge pull request #483 from NSpehler/patch-1
eahefnawy Mar 30, 2020
b4f7cf5
Support region and profile
yagitoshiro Apr 5, 2020
e8acbbd
Update node runtime to 12.x
connorads Apr 9, 2020
3fe47fe
Merge pull request #486 from connorads/patch-1
eahefnawy Apr 9, 2020
1d53e70
Remove 'Serverless Q&a Example' from Community Examples
ScottBrenner Apr 12, 2020
bca1ef1
Update community-examples.json
ScottBrenner Apr 13, 2020
2fe2057
Merge pull request #487 from ScottBrenner/patch-1
eahefnawy Apr 14, 2020
e98a041
Bump acorn from 5.7.3 to 5.7.4 in /aws-node-dynamic-image-resizer
dependabot[bot] Apr 14, 2020
c0904f5
Merge pull request #489 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Apr 15, 2020
d6ef940
Bump acorn from 6.1.1 to 6.4.1
dependabot[bot] Apr 15, 2020
3599527
Bump mixin-deep from 1.3.1 to 1.3.2 in /aws-node-dynamic-image-resizer
dependabot[bot] Apr 15, 2020
0a348aa
Merge pull request #490 from serverless/dependabot/npm_and_yarn/acorn…
eahefnawy Apr 15, 2020
06cf33a
Bump acorn from 6.1.1 to 6.4.1 in /aws-node-vue-nuxt-ssr
dependabot[bot] Apr 15, 2020
24aa1d9
Bump lodash from 4.17.11 to 4.17.13 in /aws-node-dynamic-image-resizer
dependabot[bot] Apr 15, 2020
672647d
Merge pull request #488 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Apr 15, 2020
2094d11
Merge pull request #492 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Apr 15, 2020
1a628ce
Bump handlebars from 4.1.0 to 4.7.6 in /aws-node-dynamic-image-resizer
dependabot[bot] Apr 15, 2020
627430c
Merge pull request #491 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Apr 15, 2020
60eafb6
Merge pull request #493 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Apr 15, 2020
bc28d4c
Bump js-yaml from 3.12.2 to 3.13.1 in /aws-node-dynamic-image-resizer
dependabot[bot] Apr 15, 2020
2841c25
Merge pull request #485 from yagitoshiro/patch-2
eahefnawy Apr 15, 2020
b40d9c1
Bump lodash in /aws-node-auth0-custom-authorizers-api
dependabot[bot] Apr 15, 2020
ced906a
Merge pull request #494 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Apr 15, 2020
fae7812
Bump jackson-databind in /aws-java-simple-http-endpoint
dependabot[bot] Apr 15, 2020
338ffd3
Merge pull request #495 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Apr 15, 2020
9adafde
Merge pull request #496 from serverless/dependabot/maven/aws-java-sim…
eahefnawy Apr 15, 2020
26220f0
Bump mixin-deep from 1.3.1 to 1.3.2
dependabot[bot] Apr 15, 2020
64da669
Bump eslint-utils from 1.3.1 to 1.4.3
dependabot[bot] Apr 15, 2020
15d631d
add example aws-golang-s3-file-replicator
chloe2037 Apr 16, 2020
e12c68c
Bump https-proxy-agent in /aws-node-dynamic-image-resizer
dependabot[bot] Apr 16, 2020
3b64cea
refactor: add comments
chloe2037 Apr 17, 2020
9d2b8b4
feat: README.md
chloe2037 Apr 17, 2020
9e007ee
Merge branch 'master' into master
fvant Apr 22, 2020
1318298
Bump jackson-databind in /aws-java-simple-http-endpoint
dependabot[bot] Apr 23, 2020
b525fcb
chore: remove cors: true from the authorizer
gmusial-obj Apr 24, 2020
60aa73b
Add rds to s3 log sync example
drocco007 Apr 28, 2020
01479a4
Merge pull request #501 from fvant/master
eahefnawy May 5, 2020
7439f94
Merge pull request #504 from drocco007/example-rds-log-sync-s3
eahefnawy May 7, 2020
225cbae
Merge pull request #503 from gmusial-obj/patch-1
eahefnawy May 7, 2020
5fec1e9
Merge pull request #502 from serverless/dependabot/maven/aws-java-sim…
eahefnawy May 7, 2020
6300d5a
Merge pull request #499 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy May 7, 2020
be20add
Merge pull request #498 from serverless/dependabot/npm_and_yarn/eslin…
eahefnawy May 7, 2020
5f3c022
Merge pull request #497 from serverless/dependabot/npm_and_yarn/mixin…
eahefnawy May 7, 2020
8e25fac
Bump lodash from 4.17.11 to 4.17.15
dependabot[bot] May 7, 2020
dfda4eb
Merge pull request #500 from p0n2/master
eahefnawy May 7, 2020
505d9b7
Add project aws-node-rest-api-typescript
qufei1993 May 16, 2020
37c2978
Update README.md
qufei1993 May 16, 2020
f787532
Update README.md
qufei1993 May 16, 2020
99cc4ba
Update
qufei1993 May 16, 2020
5240e78
Update
qufei1993 May 16, 2020
d460265
Update Use Cases
qufei1993 May 16, 2020
3ddfaec
add next.js example
kimcoder May 22, 2020
4c464a4
Merge remote-tracking branch 'upstream/master'
kimcoder May 22, 2020
5c52491
merge upstream
kimcoder May 22, 2020
611152b
update readme.md by npm run docs
kimcoder May 22, 2020
22a90fb
updated runtime
smlingesh May 29, 2020
482dea2
updating cloudfounctions which resolve runtime
smlingesh May 29, 2020
9aca824
caveats and pre-request updated
smlingesh May 29, 2020
06c9ef0
Merge pull request #507 from serverless/dependabot/npm_and_yarn/lodas…
eahefnawy Jun 2, 2020
6ca2ae6
Merge pull request #509 from Q-Angelo/master
eahefnawy Jun 2, 2020
6aca8f1
Merge pull request #511 from kimcoder/master
eahefnawy Jun 2, 2020
afe5a9f
Merge pull request #512 from smlingesh/master
eahefnawy Jun 2, 2020
17d03b0
updated aws-node-upload-to-s3-and-postprocess example to use signing …
repalash Jun 12, 2020
9eafdc3
Bump jackson-databind in /aws-java-simple-http-endpoint
dependabot[bot] Jun 18, 2020
cbf32ab
Add AWS Live Stream community example
adimoraret Jun 28, 2020
8a5f5df
Updated README.md
adimoraret Jun 28, 2020
b77b8f0
Add azure node explanation
Jun 30, 2020
e46ebf6
Merge pull request #517 from adimoraret/golive
eahefnawy Jul 6, 2020
22f1c1a
Merge pull request #515 from serverless/dependabot/maven/aws-java-sim…
eahefnawy Jul 6, 2020
da4f597
Merge pull request #514 from PalashBansal96/master
eahefnawy Jul 6, 2020
a739a8d
Merge pull request #520 from jaeyeonling/docs/azure-node
eahefnawy Jul 6, 2020
d3204ef
return successfully saved data
marcusstenbeck Jul 7, 2020
2e18ed4
Added example of AWS Kinesis usage in node.js
Jul 9, 2020
d59c091
Fix eslint issue with dependencies
Jul 9, 2020
8372eb9
Bump lodash from 4.17.5 to 4.17.19 in /aws-node-signed-uploads
dependabot[bot] Jul 17, 2020
534414b
Bump elliptic from 6.4.1 to 6.5.3 in /aws-node-dynamic-image-resizer
dependabot[bot] Jul 30, 2020
16fda54
Bump elliptic from 6.4.0 to 6.5.3 in /aws-node-signed-uploads
dependabot[bot] Jul 30, 2020
5130f4c
Bump elliptic from 6.4.1 to 6.5.3 in /aws-node-vue-nuxt-ssr
dependabot[bot] Jul 30, 2020
2ab4831
adding serverless http headers checks project
dbrrt Aug 3, 2020
605764a
add dev stage to stages whitelist for aws-node-rest-api-with-dynamodb…
kotarella1110 Aug 6, 2020
2c230de
Update community-examples.json
daisuke-awaji Aug 16, 2020
aecdaf3
Add simple typescript example
skierkowski Aug 17, 2020
7c50d1d
Add simple node API example
skierkowski Aug 17, 2020
33e473f
Add simple Python API example
skierkowski Aug 17, 2020
7304f98
Adding frontmatter
skierkowski Aug 17, 2020
a56cd70
Regenerating root readme.md
skierkowski Aug 17, 2020
b84cad5
Update community-examples.json
nileshprasad137 Aug 17, 2020
f572121
Merge pull request #540 from serverless/add-templates
skierkowski Aug 17, 2020
9f0da51
Bump lodash from 4.17.15 to 4.17.20
dependabot[bot] Aug 17, 2020
5739121
Update README.md
nileshprasad137 Aug 17, 2020
260aae2
Merge pull request #541 from serverless/dependabot/npm_and_yarn/lodas…
eahefnawy Aug 18, 2020
db3e698
Bump lodash from 4.17.11 to 4.17.20 in /aws-node-vue-nuxt-ssr
dependabot[bot] Aug 18, 2020
f2b6123
Bump lodash in /aws-node-auth0-custom-authorizers-api
dependabot[bot] Aug 18, 2020
8e90641
Bump lodash from 4.17.13 to 4.17.19 in /aws-node-dynamic-image-resizer
dependabot[bot] Aug 18, 2020
c3dc5cf
Merge pull request #533 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Aug 18, 2020
e976837
Merge pull request #532 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Aug 18, 2020
3d088b5
Merge pull request #531 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Aug 18, 2020
239ae8e
Merge pull request #529 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Aug 18, 2020
89d74ec
Merge pull request #528 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Aug 18, 2020
94b43d2
Merge pull request #543 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Aug 18, 2020
949722a
Merge pull request #544 from serverless/dependabot/npm_and_yarn/aws-n…
eahefnawy Aug 18, 2020
e808288
Merge pull request #542 from nileshprasad137/patch-2
eahefnawy Aug 18, 2020
a7dfebe
Merge pull request #522 from marcusstenbeck/patch-1
eahefnawy Aug 18, 2020
6a510ce
Merge pull request #524 from billkidwell/aws-node-typescript-kinesis
eahefnawy Aug 18, 2020
df8fc8c
Merge pull request #535 from kotarella1110/add-stage
eahefnawy Aug 18, 2020
048fa72
Merge branch 'master' into patch-1
dbrrt Aug 18, 2020
37bdaca
regenerate README.md
dbrrt Aug 18, 2020
96e825a
resolve conflicts and generate README.md
Aug 19, 2020
e976703
feat: added example to setup an apollo lambda
jmpfrazao Aug 20, 2020
7be898d
feat: updated Readme and removed unnecessary packages
jmpfrazao Aug 20, 2020
e7f1e6a
feat: run docs
jmpfrazao Aug 20, 2020
8cee1b1
Merge branch 'master' into feat/aws-node-typescript-apollo-lambda
jmpfrazao Aug 20, 2020
ecb6f2d
feat: updated with master
jmpfrazao Aug 20, 2020
7b45890
Update serverless.yml
pozeus Aug 26, 2020
2eb71cf
Add files via upload
pozeus Aug 26, 2020
1f99561
Update README.md
pozeus Aug 26, 2020
3075f4e
Merge pull request #538 from daisuke-awaji/patch-2
eahefnawy Aug 28, 2020
5024f38
Merge pull request #534 from dbrrt/patch-1
eahefnawy Aug 28, 2020
bed8b0e
Merge pull request #545 from jmpfrazao/feat/aws-node-typescript-apoll…
eahefnawy Aug 28, 2020
6effef2
Update list.ts, adding comment about query pref.
pozeus Aug 28, 2020
c30c85e
Merge branch 'master' into patch-1
Vadorequest Aug 29, 2020
12f7078
Merge pull request #426 from Vadorequest/patch-1
eahefnawy Sep 1, 2020
4f9cd9f
Merge pull request #550 from pozeus/master
eahefnawy Sep 1, 2020
0203fae
update the version of Serverless Framework
jakoritarleite Sep 17, 2020
d5297dd
Update frameworkVersion to 2
zjwhitehead Sep 28, 2020
2c108d7
update line bot example frameworkVersion
zjwhitehead Sep 28, 2020
0b10810
Bump package version
zjwhitehead Sep 28, 2020
776f62b
use persistent docker dynamodb
bhtabor Oct 2, 2020
b669cf9
support serverless framework up to v2.4.0
bhtabor Oct 2, 2020
ca8a9ef
update serverless-offline
bhtabor Oct 2, 2020
28bdea1
add optional persistent docker dynamodb setup in README
bhtabor Oct 5, 2020
c57d532
Create serverless.template.yml
skierkowski Oct 19, 2020
d31876f
Update message.ts
zenati Oct 21, 2020
d966bfb
Update README.md
jonee Oct 24, 2020
c35a21a
Sample Example - Creating an azure function with Service Bus as its t…
Kurshit Oct 30, 2020
f137fb9
Updating Readme.md- Adding authot avatar
Kurshit Oct 30, 2020
5337e15
Regenrated the readme
Kurshit Oct 30, 2020
ac28ef6
Updated Readme.md
Kurshit Oct 30, 2020
ea51407
Merge pull request #567 from Kurshit/master
eahefnawy Nov 12, 2020
9a2184d
Merge pull request #564 from zenati/patch-1
eahefnawy Nov 12, 2020
9f555d5
example openwhisk-rust-simple-http-endpoint
jonee Nov 29, 2020
2c1ff11
example aws-rust-simple-http-endpoint/
jonee Nov 29, 2020
d3d0e38
add .gitignore and remove some lock files
jonee Nov 29, 2020
52bb0bb
readme missing fields
jonee Nov 29, 2020
78f848e
docs updated
jonee Dec 3, 2020
af9155d
Merge pull request #565 from jonee/patch-1
eahefnawy Dec 10, 2020
8d481ea
Merge pull request #563 from serverless/update-template
eahefnawy Dec 10, 2020
3a0093c
Merge pull request #572 from jonee/master
eahefnawy Dec 10, 2020
61d51f9
Merge pull request #554 from jakoritarleite/patch-1
eahefnawy Dec 10, 2020
9f5c766
Merge pull request #558 from zjwhitehead/update-ruby-http
eahefnawy Dec 10, 2020
2bf5bae
Merge pull request #559 from bhtabor/persistent-docker-dynamodb
eahefnawy Dec 10, 2020
a26136b
add screenshotToS3 community example
Dec 22, 2020
22a7df2
Merge pull request #576 from slaytr/master
eahefnawy Jan 4, 2021
dc32177
add aws-node-typescript-express example
hoseungme Jan 24, 2021
f434af3
regenerate readme to add aws-node-typescript-express example
hoseungme Jan 24, 2021
3a57ac8
add frontmatter
hoseungme Jan 24, 2021
7573e23
add new lines
hoseungme Jan 24, 2021
d5c2e29
remove console.log
hoseungme Jan 27, 2021
d958cbd
fix framework version
hoseungme Jan 27, 2021
ba45eff
add some options to avoid deprecated warning
hoseungme Jan 27, 2021
2201913
aws-golang-rest-api-with-dynamodb
gsweene2 Jan 30, 2021
88a36ed
move example to community examples
hoseungme Feb 2, 2021
6126c5b
generate docs
hoseungme Feb 2, 2021
64f4f24
Merge pull request #577 from HoseungJang/add-typescript-express-example
pgrzesik Feb 2, 2021
f7ade86
Some cleanup, 404 for not found
gsweene2 Feb 15, 2021
44170b0
Merge pull request #579 from gsweene2/aws-go-rest-re
eahefnawy Mar 2, 2021
86e63d1
feat: Refresh `aws-python-scheduled-cron` example
pgrzesik Mar 5, 2021
5fef036
feat: Refresh `aws-node-scheduled-cron` example
pgrzesik Mar 5, 2021
8b88140
feat: Add `aws-python-sqs-worker` example
pgrzesik Mar 8, 2021
6473e13
feat: Add `aws-node-express-dynamodb-api
pgrzesik Mar 8, 2021
52e46b3
feat: Add `aws-node-sqs-worker` template
pgrzesik Mar 8, 2021
1346614
feat: Add `aws-node-express-api` template
pgrzesik Mar 8, 2021
ce385eb
feat: Add `aws-python-flask-api` example
pgrzesik Mar 9, 2021
04dd3b3
feat: Add `aws-python-flask-dynamodb-api` template
pgrzesik Mar 9, 2021
68ab41a
feat: Refresh `aws-node-rest-api` template
pgrzesik Mar 9, 2021
9ba2bb3
fix: Add missing template for `aws-python-flask-api`
pgrzesik Mar 10, 2021
ce882aa
fix: Add missing template for `aws-python-flask-dynamodb-api`
pgrzesik Mar 10, 2021
4655821
feat: Refresh `aws-python-rest-api` template
pgrzesik Mar 9, 2021
ae23ec6
feat: Move `src` to top-level `handler` (#594)
pgrzesik Mar 10, 2021
b497907
fix: Use `Ref:` instead of `!Ref` in `sqs` templates
pgrzesik Mar 10, 2021
6851d02
feat: Cleanup configuration for templates
pgrzesik Mar 15, 2021
0c0204d
feat: Remove setup section from api templates
pgrzesik Mar 15, 2021
6006826
Create AWS Ruby/Sinatra/DynamoDB example
icole Mar 16, 2021
8ed749d
Add README. Update local db client config
Mar 18, 2021
bdd7f2b
Rubocop nit
icole Mar 19, 2021
76d8320
Add template file. Updates to README
icole Mar 19, 2021
039605e
Add new example to README
icole Mar 19, 2021
c8cdfe9
Add async to handler in order to end function
garethmcc Mar 30, 2021
70e48cc
Merge pull request #602 from serverless/async-patch
pgrzesik Mar 30, 2021
8d287d9
Create examples.json
walidelnozahy Apr 23, 2021
992ad8f
Update examples.json
walidelnozahy Apr 23, 2021
b4d9ce6
Update examples.json
walidelnozahy Apr 23, 2021
3df2526
Update README.md
walidelnozahy Apr 23, 2021
3e54f0c
Update examples.json
walidelnozahy Apr 23, 2021
c019512
Update aws-python-flask-api README.md to include pip install
jugalde Apr 23, 2021
74af563
Merge pull request #607 from walidelnozahy/master
walidelnozahy Apr 25, 2021
ccebd5c
Merge pull request #606 from jugalde/master
eahefnawy Apr 28, 2021
2e52128
Remove template file
May 1, 2021
16adcc5
Merge pull request #600 from icole/ruby-sinatra-example
pgrzesik May 3, 2021
6ec3133
feat: Add `aws-python` example
pgrzesik May 3, 2021
396943c
feat: Add `aws-node` example
pgrzesik May 3, 2021
e88587d
refactor: Remove `org` and `app` from selected templates
pgrzesik May 4, 2021
d470e58
Update examples.json
walidelnozahy May 7, 2021
bfd01c3
chore: Update `ruby` runtime from 2.5 to 2.7 (#612)
Pigius Jun 4, 2021
f47ede8
fix: Change dictionary key reference to use `.get()` (#613)
calvinli723 Jun 5, 2021
907d03e
feat: Add AWS Ruby scheduled cron example backed by DynamoDB (#614)
Pigius Jun 14, 2021
451d43d
feat: Update `aws-node-s3-file-replicator` with Lift construct (#618)
fredericbarthelet Jun 17, 2021
8029069
docs: Update typos in `aws-python-scheduled-cron` example (#623)
hrchu Jun 21, 2021
37e977f
feat: Add ruby sqs dynamodb example (#620)
Pigius Jun 23, 2021
3ea64b6
fix: Update dependencies for Python Flask for Lambda compatibility
pgrzesik Jun 23, 2021
67d2c66
feat: Use Lift in `aws-node-sqs-worker`
pgrzesik Jun 24, 2021
aa1164b
feat: Use Lift in `aws-sqs-python-worker`
pgrzesik Jun 24, 2021
391098d
fix: Update `runtime` for `openwhisk-python-simple` example. (#627)
sarveshbhatnagar Jun 28, 2021
81630db
fix: Update `runtime` for `openwhisk-python-*` examples
pgrzesik Jun 30, 2021
71ae482
fix: Ensure to use `amd64` arch for `golang` examples
pgrzesik Jun 30, 2021
1e72e67
fix: `lodash` dependency for `twilio` example
slaytr Jul 12, 2021
4546843
docs: Improve the docs of the `aws-*-sqs-worker` examples (#631)
mnapoli Jul 12, 2021
689eec3
feat: Add `aws-ruby-step-functions` example (#632)
Pigius Aug 9, 2021
b3ee0e6
Add sorting priority to README front matter. Closes #642 (#643)
chris-calo Aug 23, 2021
b61a0b5
added priority to examples
walidelnozahy Aug 23, 2021
600f5b0
Merge pull request #644 from serverless/add-priority
walidelnozahy Aug 23, 2021
9575c7b
Change ws-node-websockets-authorizers priority
walidelnozahy Aug 23, 2021
60dc385
feat: Add `aws-ruby-step-functions-with-callback` example (#640)
Pigius Aug 24, 2021
ba47e02
feat: Add `aws-ruby-step-functions-express` example (#639)
Pigius Aug 24, 2021
364fbb5
fix: Compress images, and fix tables for cron example for ruby (#645)
Pigius Aug 24, 2021
13aac81
Change aws-node-graphql-api-with-dynamodb priority
walidelnozahy Aug 24, 2021
127947d
Update examples.json
walidelnozahy Aug 25, 2021
d488da0
fix: Added `shell: true` option to `spawnSync` (#641)
arthur-cheung Aug 26, 2021
b6dfaf2
Fix code lang
walidelnozahy Sep 7, 2021
185072d
Switch to HTTP APIs by default for Node examples
mnapoli Jul 23, 2021
95517b0
Switch to HTTP APIs by default for Java examples
mnapoli Jul 29, 2021
72323f8
Switch to HTTP APIs by default for other examples
mnapoli Jul 29, 2021
265bbea
Switch to HTTP APIs by default for Python examples
mnapoli Aug 9, 2021
9897d11
Switch to HTTP APIs by default for Node SQS example
mnapoli Aug 9, 2021
8fbbd79
Switch to HTTP APIs by default for Ruby example
mnapoli Sep 2, 2021
8ae42a3
Switch to HTTP APIs by default for Rust example
mnapoli Sep 2, 2021
974d808
Switch to HTTP APIs by default for Go example
mnapoli Sep 2, 2021
49e01f0
use modules instead of dep
hkolvenbach Sep 19, 2021
ac90e65
feat: Add missing `serverless.template.yml`
pgrzesik Oct 18, 2021
af71538
fix: spelling error
saurabh-codeword Oct 20, 2021
2e5aef6
chore: Remove inaccessible example from readme (#654)
joshq00 Oct 22, 2021
31c3b41
Change dbInstanceClass for postgres to small to be compatible with po…
weberswords Oct 28, 2021
8a2a2a3
fix: Change `dbInstanceClass` for postgres to small to be compatible …
pgrzesik Oct 28, 2021
2a0542e
Adding idempotence check in aws-node-express-dynamodb-api/handler.js
Nsupyq Nov 2, 2021
e3cbbbd
Simplify the idempotence check in handler.js
Nsupyq Nov 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.{diff,md}]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"root": true,
"extends": "airbnb-base",
"env": {
"node": true
},
"rules": {
"strict": "off",
"no-console": "off",
"import/no-unresolved": "off"
}
}
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Hi there ⊂◉‿◉つ

Thanks for submitting a PR! We're excited to see what you've got for us!

Make sure to lint your code to match the rest of the repo.

Run `npm run lint` to lint

-->
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage
.grunt
.lock-wscript
node_modules
**/.idea
.idea
.DS_Store
.tmp
.env
Expand All @@ -20,3 +20,8 @@ env.json
admin.env
tmp
*.pyc
*.swp
*.swo
vendor
./bin/Debug/netcoreapp2.1/
./bin/release/netcoreapp2.1/
4 changes: 3 additions & 1 deletion .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ install:
- npm install

script:
- npm run lint
- npm run docs
- npm run validate
- ./check-if-readme-is-up-to-date.sh
33 changes: 33 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
The MIT License (MIT)

Copyright (c) 2017 Serverless, Inc. http://www.serverless.com

The following license applies to all parts of this software except as
documented below:

====

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

====

All files located in the node_modules and external directories are
externally maintained libraries used by this software which have their
own licenses; we recommend you read them, as their terms may differ from
the terms above.
312 changes: 303 additions & 9 deletions README.md

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions aws-dotnet-rest-api-with-dynamodb/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
git node_modules
.serverless
*.swp
*.*~
project.lock.json
.DS_Store
*.pyc
nupkg/

# Visual Studio Code
.vscode

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/
[Oo]ut/
msbuild.log
msbuild.err
msbuild.wrn

# Visual Studio 2015
.vs/

env.configs.yml
71 changes: 71 additions & 0 deletions aws-dotnet-rest-api-with-dynamodb/DotNetServerless.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{E45346EE-74B7-4F5B-943C-FEFDE57124D0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{DBC29D13-84FE-4A90-B785-E325BDD494A8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetServerless.Lambda", "src\DotNetServerless.Lambda\DotNetServerless.Lambda.csproj", "{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetServerless.Tests", "tests\DotNetServerless.Tests\DotNetServerless.Tests.csproj", "{045DC8E9-8CA6-4B76-9C4A-781AB9589700}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetServerless.Application", "src\DotNetServerless.Application\DotNetServerless.Application.csproj", "{8F0BB856-4F83-4898-ACC7-68D672386742}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|x64.ActiveCfg = Debug|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|x64.Build.0 = Debug|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|x86.ActiveCfg = Debug|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Debug|x86.Build.0 = Debug|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Release|Any CPU.Build.0 = Release|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Release|x64.ActiveCfg = Release|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Release|x64.Build.0 = Release|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Release|x86.ActiveCfg = Release|Any CPU
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F}.Release|x86.Build.0 = Release|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Debug|Any CPU.Build.0 = Debug|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Debug|x64.ActiveCfg = Debug|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Debug|x64.Build.0 = Debug|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Debug|x86.ActiveCfg = Debug|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Debug|x86.Build.0 = Debug|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|Any CPU.ActiveCfg = Release|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|Any CPU.Build.0 = Release|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|x64.ActiveCfg = Release|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|x64.Build.0 = Release|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|x86.ActiveCfg = Release|Any CPU
{045DC8E9-8CA6-4B76-9C4A-781AB9589700}.Release|x86.Build.0 = Release|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x64.ActiveCfg = Debug|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x64.Build.0 = Debug|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x86.ActiveCfg = Debug|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Debug|x86.Build.0 = Debug|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|Any CPU.Build.0 = Release|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x64.ActiveCfg = Release|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x64.Build.0 = Release|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x86.ActiveCfg = Release|Any CPU
{8F0BB856-4F83-4898-ACC7-68D672386742}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9A74B45A-50B6-44C8-A2D7-F7778A61F18F} = {E45346EE-74B7-4F5B-943C-FEFDE57124D0}
{045DC8E9-8CA6-4B76-9C4A-781AB9589700} = {DBC29D13-84FE-4A90-B785-E325BDD494A8}
{8F0BB856-4F83-4898-ACC7-68D672386742} = {E45346EE-74B7-4F5B-943C-FEFDE57124D0}
EndGlobalSection
EndGlobal
45 changes: 45 additions & 0 deletions aws-dotnet-rest-api-with-dynamodb/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!--
title: 'Dot Net REST API with DynamoDB'
description: 'Setup a REST API w/ DynamoDB using Dot Net Core 2.1'
framework: v1
platform: AWS
language: CSharp
priority: 10
authorLink: 'https://github.com/samueleresca'
authorName: 'Samuele Resca'
authorAvatar: 'https://avatars0.githubusercontent.com/u/8921095?v=4&s=140'
-->

# DotNetServerless

The following AWS lambda is built in .NET Core 2.1


## Configure lambda

It is possible configure the lambda by editing the `env.config.yml` file:

```
feature: <feature_name>
version: 1.0.0.0
region: <aws_region>
environment: <environment>
accountId: <aws_account_id>
dynamoTable: <dynamo_table_name>
```

## Run

The project contains a `package.json` file with the following commands:

```
npm run tests
```

```
npm run build
```

```
npm run deploy
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.3.14.12" />
<PackageReference Include="MediatR" Version="5.1.0" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="5.1.0" />
<PackageReference Include="AWSSDK.Core" Version="3.3.29.3" />
<PackageReference Include="AWSSDK.Core" Version="3.3.29.3" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.1.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Amazon.DynamoDBv2.DataModel;

namespace DotNetServerless.Application.Entities
{
public class Item
{
[DynamoDBHashKey]
public string Id { get; set; }
[DynamoDBRangeKey]
public string Code { get; set; }
[DynamoDBProperty]
public string Description { get; set; }
[DynamoDBProperty]
public bool IsChecked { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using DotNetServerless.Application.Entities;
using DotNetServerless.Application.Infrastructure.Repositories;
using DotNetServerless.Application.Requests;
using MediatR;

namespace DotNetServerless.Application.Handlers
{
public class CreateItemHandler : IRequestHandler<CreateItemRequest, Item>
{
private readonly IItemRepository _itemRepository;

public CreateItemHandler(IItemRepository itemRepository)
{
_itemRepository = itemRepository;
}

public async Task<Item> Handle(CreateItemRequest request, CancellationToken cancellationToken)
{
var item = request.Map();
item.Id = Guid.NewGuid().ToString();

await _itemRepository.Save(item, cancellationToken);

return item;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using DotNetServerless.Application.Entities;
using DotNetServerless.Application.Infrastructure.Repositories;
using DotNetServerless.Application.Requests;
using MediatR;

namespace DotNetServerless.Application.Handlers
{
public class GetItemHandler : IRequestHandler<GetItemRequest, Item>
{
private readonly IItemRepository _itemRepository;

public GetItemHandler(IItemRepository itemRepository)
{
_itemRepository = itemRepository;
}


public async Task<Item> Handle(GetItemRequest request, CancellationToken cancellationToken)
{
var result = await _itemRepository.GetById<Item>(request.Id.ToString(), cancellationToken);
return result.FirstOrDefault();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System.Threading;
using System.Threading.Tasks;
using DotNetServerless.Application.Entities;
using DotNetServerless.Application.Infrastructure.Repositories;
using DotNetServerless.Application.Requests;
using MediatR;

namespace DotNetServerless.Application.Handlers
{
public class UpdateItemHandler : IRequestHandler<UpdateItemRequest, Item>
{
private readonly IItemRepository _itemRepository;

public UpdateItemHandler(IItemRepository itemRepository)
{
_itemRepository = itemRepository;
}

public async Task<Item> Handle(UpdateItemRequest request, CancellationToken cancellationToken)
{
var item = request.Map();
await _itemRepository.Save(item, cancellationToken);
return item;
}
}
}
Loading