Building AWS Infrastructure with Terraform: S3 Bucket Creation

If you are going to be working with any cloud provider it is highly suggested that you script out the creation/maintenance of your infrastructure.  In the AWS word you can use the native CloudFormation solution, but honestly I find this painful and the docs very lacking.  Personally, I prefer Terraform by Hashicorp.  In my experience …

Continue reading Building AWS Infrastructure with Terraform: S3 Bucket Creation

Log Early, Log Often… Saved my butt today

In a prior posting (AWS Lambda:Log Early Log often, Log EVERYTHING) I wrote about the virtues and value about having really in depth logging, especially when working with cloud services.  Well today this logging saved my ASS a ton of detective work. Little Background I have a background job (Lambda that is called on a schedule) …

Continue reading Log Early, Log Often… Saved my butt today

Using Manual Mocks to test the AWS SDK with Jest

Anytime you build Node applications it is highly suggested that your cover your code with tests.  When your code interacts with 3rd party API's such as AWS you will most certainly want to mock/stub your calls in order to prevent external calls (if you actually want to do external calls, these are called integration tests …

Continue reading Using Manual Mocks to test the AWS SDK with Jest

Going Async with Node AWS SDK with Express

When building applications in Node/Express you will quickly come to realize that everything is done asynchronously . But how you accomplish these tasks async can vary.  The 'old school' way was to use call backs, which often led to callback hell.  Than came along Promises which we thought was going to solve all the worlds problems, turned out they helped, but did not solve everything.  Finally in Node 8.0 (ok, you could use them in Node 7.6) the support for async/await was introduced and this really has cleaned up and enhanced the readability of your code.

Package and Publish a Node site to AWS ElasticBeanstalk with Gulp

Say you are building a Node application which you want to host in AWS Elastic Beanstalk, but how do you automate this process?  I mean sure, you could just open up the AWS console and manually upload your files, but lets be honest that is a royal pain in the ass.  What we really want …

Continue reading Package and Publish a Node site to AWS ElasticBeanstalk with Gulp

Package and Publish React Site to AWS S3 Bucket with Gulp

There are many ways you can get code into an S3 bucket, especially if you have a build/deploy server.   But what do you do when you do not have one?  One possible solution is to use Gulp to build/deploy the React application and publish to an S3 bucket. Before you get started I am going …

Continue reading Package and Publish React Site to AWS S3 Bucket with Gulp