WildRydes Admin Interface
In my last blog post, I mentioned how I was working my way through @‘s excellent tutorial on GitHub on how to work with AWS Lambda Services, API Gateway, etc. I work through the tutorial when I have a few minutes to spare and am finding it quite enjoyable. AWS Lambda Services and the API Gateway are pretty fun and interesting to work with.
In Lab 3 of the tutorial we create an Admin Interface to allow authenticated users the ability to view the email addresses that have been added to the DynamoDB database. Admin Users are authenticated by the Admin Interface against a Cognito User Pool. This lab was pretty straight-forward as I did not fat-finger as any mistakes this time. However, I did take note of the following:
API Gateway URL Notes:
- Make sure to ‘Deploy API’ after you make changes to your API Gateway. Many times I thought my configuration updates simply weren’t correct, when in fact I had simply forgotten to deploy the updates to ‘prod’.
- Simply adding ‘Authorizers’ on your API Gateway is not sufficient for protecting the URL endpoint. You have to also add the Authorizer to the Method Request ‘Authorization’ of the URL endpoint. I found that my API endpoints were not protected until I remembered to do this step:
Lambda CI/CD Pipelines
As I am slowly working up to doing something more substantial with Lambda Services, I am curious how one might integrate Lambda Serverless Code into a CI/CD Pipeline. It seems you can use Gulp/Grunt with the gulp-awslambda plugin (https://www.npmjs.com/package/gulp-awslambda) to accomplish this. I need to to try this out.
My Admin screen is available on CloudFront, but you can’t log in.
My API Gateway Endpoint is publicly available as well, but it should be protected against unauthenticated users: https://wlqmlbphqc.execute-api.us-east-1.amazonaws.com/prod/emails
What a great tutorial!! One more Lab to finish and I’ll hopefully be off building something real…
Some Randomness : ‘The Black Bear’
My girlfriend and I have been watching ‘Black Mirror’ on Netflix occasionally. Last night, we watched the ‘White Bear’ episode, which freaked me out, as most episodes do. But, it also made me think of one of my favorite Bagpipe Tunes, ‘The Black Bear’. Hear some renditions to make your cubicle-bound blood start pumping:
Paaaaaaaassssssss. In. Revieeeeeeeeeewwwwwwwwwwwwwwwwww!!!!!