Learn how to attach a Lambda Layer to a Lambda Function using AWS SAM (Serverless Application Model) and AWS console.
Posts by Category
Learn how to create a Lambda Layer using AWS SAM (Serverless Application Model) and CloudFormation in YAML to reuse code, write zero redundant code and reduce Lambda deployment size.
Learn how to upgrade your AWS SAM CLI using Homebrew.
Learn how to handle ModuleNotFoundError: No module named 'boto3.dynamodb.conditions.Key'; error.
Check out how to convert Amazon Polly Audio from PCM to WAV format in Python.
Learn how to configure AWS Elastic Beanstalk worker instances to auto scale based on the number of messages in the associated worker queue (queue size / queue depth).
Learn how to enable downloading from Amazon S3 private buckets directly.
Learn how to handle Amazon S3 CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource error.
Learn how to work around AWS Lambda invocation(request and response) payload size limit.
Learn how to update AWS Cloud9 IDE(Integrated development environment) AWS SAM(Serverless Application Model) CLI(command-line interface) version.
Learn how to send API requests using AWS Amplify API with retries. This function pattern also works for retrying a promise when the promise rejects.
Learn how to use AWS Amplify API with Axios to query endpoints that return Blob response type but JSON error response type.
Learn how to configure AWS SAM to enable Binary Response such as audio/wav, application/zip, image/jpeg, image/png etc from AWS Api Gateway with Lambda proxy integration.
Learn how to install AWS SAM CLI and invoke AWS Lambda functions on your local machine using AWS SAM CLI.
Learn how to create development and production pipelines for your web service projects using AWS CodePipeline and AWS CodeStar. Having a development and a production pipeline can streamline development and production workflow.
Learn how to create multiple API Gateway deployment stages even though AWS SAM replaces previous stages in subsequent deployments.
An example of using Python multi-threading in AWS Lambda.
Learn how to provide API Gateway permission to invoke Lambda function(s).
Learn how to deal with AWS API Gateway “Final policy size bigger than limit(20480)” error.
Learn how to use AWS Amplify to sign your API Gateway requests with Signature Version 4.
Learn how to set up control access to your AWS API Gateway endpoints with IAM permissions, Amazon Cognito User Pools or Lambda Authorizer (previously named Custom Authorizer).
There is no straightforward way to pause an Elastic Beanstalk(EB) environment on AWS console. You can’t terminate it as it will be deleted. Fret not, you can stop your Elastic Beanstalk environment from running when it is not needed so that you only pay when you use it.
If you use Amazon DynamoDB to keep track of usage count, you may encounter a situation where you need to increase a user’s usage count when the user is actively using your service, how do you make sure you calculate the total usage correctly? How do you make sure you don’t count more or less?
When I was downloading via an Amazon S3 url, I realized that it had the exact name as how I kept it in the storage. It would be more informative and convenient to users if the downloaded that have meaningful names instead of randomly generated IDs.
Learn how to configure AWS DynamoDB(DDB) to use pay-per-request billing mode and on-demand read/write capacity mode.
Check out different ways to verify if an Amazon DynamoDB(DDB) table time-to-live(TTL) is configured correctly.
Learn how to make Amazon DynamoDB(DDB) tables clean up itself.
Learn how to create DynamoDB(DDB) Global and Local Secondary Indexes(GSI and LSI).
Learn about AWS DynamoDB(DDB) indexes and the difference between its global and local secondary indexes.
Learn how to upload a zip file to AWS S3 using Boto3 Python library.
Learn how to enable CloudFormation to create roles for your AWS resources.
Learn how to create a lazy loading path with Angular 8 apps using Angular CLI.
Learn about HTML Inline Frame element (<iframe>) through some examples.
Learn how to manage communication across browser windows and tabs for your websites and web applications.
Learn how to inject an Angular services.
Learn how to use Angular service factory providers and abstract classes to make your Angular project code more organized.
Learn about Angular services and how to write a service.
Learn about Angular tree-shaking.
Learn how to publish the latest version of your progressive web app.
You can block a network request on Google Chrome DevTools to see its effect on your web application or website.
Since XMLHttpRequest(XHR) is not usable in a service worker scope and fetch API hasn’t supported upload progress as of 2019 March, how to listen for upload progress when we use a service worker?
Learn how to listen for upload progress when you use AJAX - XMLHttpRequest(XHR).
Learn how to force update or activate your updated service worker when it is in waiting state.
Web browsers and mobile browsers don’t behave the same and sometimes don’t support the same functionalities. It is important for us to test our app on mobile browsers too especially the browsers that most of our users are using.
When you develop your Angular app on localhost, you might wonder how it looks like on a real mobile device(phone, tablet, etc.), whether it is responsive to different screen sizes. To do that, you can load your site running on localhost on your mobile devices when they are connected to the same local area network(LAN) such as connecting to the same WiFi.
Learn how to add a scroll progress bar(read progress bar) to your web page to inform readers how much they have read from your article or to indicate how much page has been scrolled.
When a page has long content, it would be good to have anchors at sections’ titles and also a scroll-to-top that help users navigate and scroll.
To have code snippets highlighted so that they are more reader-friendly, we have to wrap our code using the following syntax.
Learn how to turn on Chrome DevTools to debug a chrome extension.
Learn how to inspect request and response headers on Safari.
Learn how to turn on reader view on Google Chrome, Mozilla Firefox and Safari browsers.
Sometimes, it is hard to convey your ideas via text. With videos, you would be able to express your thoughts and ideas more vividly. To show what is going on in your screen for educational purpose, debugging or other purposes, you can record your Macbook screen.
This is to clarify the steps to connect multiple phones via bluetooh to an Amazon Echo & Alexa.
Learn how to upgrade Python 3.6 to Python 3.7 or 3.8 on Mac OS.
Learn how to handle bash: pip: command not found error.
Check out the steps below to install Python 3 on Mac OSX.
Learn how to write simple shell script to open websites on a web browser window by using a command.
Learn how to upgrade Python 3.6 to Python 3.7 on Mac OS.
Ever feel that it costs quite a bit to send money overseas. Check out this service and save money on your next international wire transfer.