Today I found out just how quickly AWS Lambda’s code storage adds up. I checked the console and saw 27 GB of code taking up space—far more than I expected. What’s counting toward that total, and how can you avoid the same surprise? My 15 functions together only consume about 392 MB of code storage. You can list each function […]
Category: Cloud Programming
Dynamic Origin Swapping in AWS CloudFront with Lambda@Edge
I recently needed to add a staging environment to my single page apps (SPA) hosted on S3 and served through an existing CloudFront distribution. My bucket layout looked like this: Rather than stand up a second distribution, I decided to serve stage traffic from the same CF endpoint—simply by swapping the S3 origin path at runtime. The natural […]
Generating Config Cache in Laravel Serverless Deployments
Laravel applications can be successfully deployed to AWS serverless infrastructure using projects such as Bref. On deployments, for optimal performance you want to create cached files for your configuration, events, routes, and views by using php artisan optimize. One challenge with compiled Laravel configuration files is that they generate absolute, environment-dependent paths. This behavior can […]
AWS Certified Data Engineer – Associate (DEA-C01)
Introduction What data engineers do? Data engineers: Data management challenges: Essentially, the role of the data engineer is to get data from sources, make is useful and serve the data to stakeholders. Data Discovery Data engineer responsibilities: AWS Data Services and Modern Infrastructure Basic workflow of modern data engineering building blocks: Orchestration and Automation Options […]
AWS Certified Developer – Associate (DVA-C02)
My reference page for notes produced when studying AWS material. Well-Architected Framework Let’s start with AWS well-architected framework because in AWS everything touches that concept. The six pillars of well-architected framework includes: Cloud Design Patterns Security IAM – concept of users and policies. Policies are assigned to users. Can use existing policies or create new […]
“other side closed” – AWS Lambda with Parameters and Secrets Extension
Secrets lambda extensions is optional and AWS maintained layer that provide fast access to secrets manager or parameter store. In fact, it is just locally available http server that you can query with your favorite http client to get your app’s secrets. By default it is available on port 2773. Recently I have come across […]
SSL Offloading – AWS Application Load Balancer
Did you know that AWS Application Load Balancer (ALB) supports SSL offloading out of the box! To start create Amazon issued certificate from AWS Certificate Manager. Then, assign this certificate into ALB HTTPS:443 listener and route the traffic to a target group which is set to listen on port HTTP:80. One great benefit of such […]