AWS Serverless Integration Tests With Moto - What Can go Wrong?

If you’re planning to use Python moto library (to mock AWS resources) for unit tests and at the same time use integration tests - watch out as it can bite you!

June 11, 2019 · 3 min

Local Development and Testing of AWS Serverless Application

Is it possible to create local environment for Serverless application? And if it is possible - is it worth the effort?

June 5, 2019 · 5 min

Sample CI/CD Configuration for Serverless Application on AWS

How to effectively use stage promotions for your Serverless application. Article includes description of example CI/CD pipeline on AWS.

June 3, 2019 · 6 min

Configuring DynamoDB tables per deployment stage using Serverless Framework

Example how to name per-stage DynamoDB tables

May 30, 2019 · 2 min

Defining CodeBuild runtime in buildspec.yml

Short introduction to AWS CodeBuild runtime images

May 28, 2019 · 2 min

MultiWAN on OpenWrt / LEDE

If you have OpenWrt installed on your home router and you’d like to have a backup internet connection or a secondary WAN connection (e.g. to do a load-balancing between multiple WANs) then you might be interested in this post. I will describe steps I needed to do in order to configure 2 WAN connections used simultaneously: one coming from cable modem and second one from USB LTE modem Huawei E3272 with SIM card from Polish telecom operator Plus GSM....

March 19, 2019 · 6 min

Mock exam for SCWCD / OCE JEE6: JSP and Servlet Developer Exam is back alive

Years ago I was learning to pass Oracle Certified Expert, Java EE 6: JSP and Servlet Developer Exam (formerly Sun Certified Java Web Component Developer.) At that time this exam was so fresh that there were no mock exams available. Hence, I’ve decided to create one. The idea was to learn and help others learning for this exam at the same time. Mock exam was published on OpenShift’s free plan that was deprecated like a year ago....

March 16, 2019 · 1 min

Enabling CORS in API Gateway Requires Method Response

You can enable CORS in API Gateway through AWS Console with few simple clicks: However there are some restrictions regarding when you can invoke this. You need to remember that all this function is doing is just adding some headers like Access-Control-Allow-(Headers|Methods|Origin) to your API Gateway response. To do this, it needs to modify the “Method Response” section of your resource. If you won’t have any response definition then this will simply not work and fail immediately....

January 2, 2019 · 1 min

Trailing slash in REST API DOES matter

This is like a reminder to myself but assumed others might also be interested in it. When designing REST API, remember that every character in the URI is important and constitutes unique resource. Hence: http://your-server.com/api/cars is different than http://your-server.com/api/cars/ AWS API Gateway is not different in this case, so pay extra attention as you define e.g. triggers for your lambdas in SAM file: ReadCars: Type: AWS::Serverless::Function Properties: (...) Events: GetEvent: Type: Api Properties: Path: /cars Method: get Mind this /cars value for Path....

January 1, 2019 · 1 min

Enabling CORS For Local AWS API Gateway

If you’d like to use CORS in your AWS API Gateway, it’s pretty easy to configure in the Console. You just select the resource (or the root if you’d like to enable it for all resources) and select Actions -> Enable CORS, like this: If you’re using SAM, it might be much more useful for you to define it within the SAM template file directly, as described in the documentation....

December 29, 2018 · 1 min