[{"data":1,"prerenderedAt":1590},["ShallowReactive",2],{"post-cards":3,"categories":733,"post-deploy-a-lambda-container-image-with-ecr-and-the-console":783},[4,29,44,61,80,102,113,130,147,161,178,192,207,222,235,244,253,267,281,295,305,318,328,338,349,364,376,389,400,411,422,433,444,455,468,481,496,511,525,539,551,562,573,583,593,603,613,623,633,643,653,663,673,683,693,703,713,723],{"path":5,"title":6,"slug":7,"summary":8,"date":9,"readTime":10,"hasImage":11,"category":12,"tags":17,"tagSlugs":28},"\u002Fposts\u002Fbuild-a-qr-code-lambda-and-call-it-from-laravel","Build a QR Code Lambda and Call It From Laravel","build-a-qr-code-lambda-and-call-it-from-laravel","A hands-on, beginner-friendly build: write a tiny Python AWS Lambda that turns text into a QR code, run it locally in Docker with no AWS account, and call it from a Laravel app. Every line of Python is explained for developers coming from PHP.","2026-06-15",10,true,{"id":13,"name":14,"slug":15,"hue":16},7,"AWS","aws",195,[18,19,22,25],{"name":14,"slug":15},{"name":20,"slug":21},"Lambda","lambda",{"name":23,"slug":24},"Docker","docker",{"name":26,"slug":27},"Laravel","laravel",[15,21,24,27],{"path":30,"title":31,"slug":32,"summary":33,"date":9,"readTime":10,"hasImage":11,"category":34,"tags":35,"tagSlugs":43},"\u002Fposts\u002Fdeploy-a-lambda-container-image-with-ecr-and-the-console","Deploy a Lambda Container Image With ECR and the Console","deploy-a-lambda-container-image-with-ecr-and-the-console","You built a QR code Lambda and ran it locally. Now put it on AWS the click-through way: create an Amazon ECR repository, push your image, and create the Lambda from that image in the console. Then test it and optionally expose it with a Function URL your Laravel app can call.",{"id":13,"name":14,"slug":15,"hue":16},[36,37,38,41,42],{"name":14,"slug":15},{"name":20,"slug":21},{"name":39,"slug":40},"ECR","ecr",{"name":23,"slug":24},{"name":26,"slug":27},[15,21,40,24,27],{"path":45,"title":46,"slug":47,"summary":48,"date":9,"readTime":49,"hasImage":11,"category":50,"tags":55,"tagSlugs":60},"\u002Fposts\u002Fpython-for-php-developers","Python for PHP Developers","python-for-php-developers","A friendly tour of Python for developers who already know modern PHP. We map the things you reach for every day, types, arrays, classes, named arguments, match, and enums, onto their Python equivalents so you can read and write Python with confidence.",12,{"id":51,"name":52,"slug":53,"hue":54},8,"Python","python",330,[56,57],{"name":52,"slug":53},{"name":58,"slug":59},"PHP","php",[53,59],{"path":62,"title":63,"slug":64,"summary":65,"date":66,"readTime":67,"hasImage":11,"category":68,"tags":71,"tagSlugs":79},"\u002Fposts\u002Fsolid-principles-modern-php","SOLID Principles in Modern PHP","solid-principles-modern-php","SOLID has not changed in years, but PHP has. Here are the five object-oriented design principles rewritten for PHP 8.5, using typed properties, readonly, enums, constructor promotion, and property hooks to express the same ideas with far less boilerplate.","2026-06-14T12:00:00",9,{"id":69,"name":58,"slug":59,"hue":70},1,264,[72,73,76],{"name":58,"slug":59},{"name":74,"slug":75},"OOP","oop",{"name":77,"slug":78},"Architecture","architecture",[59,75,78],{"path":81,"title":82,"slug":83,"summary":84,"date":85,"readTime":13,"hasImage":86,"category":87,"tags":92,"tagSlugs":101},"\u002Fposts\u002Fgit-flow-vs-github-flow-choosing-a-branching-strategy","Git Flow vs GitHub Flow: Choosing a Branching Strategy for Your Team","git-flow-vs-github-flow-choosing-a-branching-strategy","Git Flow and GitHub Flow take very different approaches to team branching and releases. Let's compare them, see where trunk-based development fits, and sort out how to handle versioned releases, hotfixes, and everything in between.","2026-06-14",false,{"id":88,"name":89,"slug":90,"hue":91},4,"Git","git",158,[93,95,98],{"name":94,"slug":90},"GIT",{"name":96,"slug":97},"Workflow","workflow",{"name":99,"slug":100},"GitHub","github",[90,97,100],{"path":103,"title":104,"slug":105,"summary":106,"date":85,"readTime":13,"hasImage":86,"category":107,"tags":108,"tagSlugs":112},"\u002Fposts\u002Fgithub-flow-keep-your-main-branch-deployable","GitHub Flow: Keep Your Main Branch Deployable","github-flow-keep-your-main-branch-deployable","GitHub Flow is the lightweight branching workflow built on a single rule: anything in main is deployable. Here is the whole loop, branch, pull request, review, merge and deploy, with the git and gh commands and an honest look at where it fits.",{"id":88,"name":89,"slug":90,"hue":91},[109,110,111],{"name":94,"slug":90},{"name":96,"slug":97},{"name":99,"slug":100},[90,97,100],{"path":114,"title":115,"slug":116,"summary":117,"date":118,"readTime":10,"hasImage":11,"category":119,"tags":120,"tagSlugs":129},"\u002Fposts\u002Forchestrating-lambdas-with-step-functions","Orchestrating Lambdas with Step Functions","orchestrating-lambdas-with-step-functions","Step Functions let you wire Lambdas into workflows with retries, branching, and parallelism, but you do not always need them. Here is an honest guide to when a state machine earns its keep, then a real parallel pipeline built with the modern JSONata syntax, deployed with SAM and tested locally.","2026-06-03",{"id":13,"name":14,"slug":15,"hue":16},[121,122,123,126],{"name":14,"slug":15},{"name":20,"slug":21},{"name":124,"slug":125},"Step Functions","step-functions",{"name":127,"slug":128},"Serverless","serverless",[15,21,125,128],{"path":131,"title":132,"slug":133,"summary":134,"date":135,"readTime":136,"hasImage":11,"category":137,"tags":138,"tagSlugs":146},"\u002Fposts\u002Fgive-your-lambda-an-http-front-door","Give Your Lambda an HTTP Front Door","give-your-lambda-an-http-front-door","Your Lambda works, but how should the world call it? This is a practical tour of the options: invoking directly, Lambda function URLs, and Amazon API Gateway, with a clear guide to what each one buys you. Then we build an HTTP API with SAM, test it locally, and call it from a Laravel app.","2026-05-06",11,{"id":13,"name":14,"slug":15,"hue":16},[139,140,141,144,145],{"name":14,"slug":15},{"name":20,"slug":21},{"name":142,"slug":143},"API Gateway","api-gateway",{"name":127,"slug":128},{"name":26,"slug":27},[15,21,143,128,27],{"path":148,"title":149,"slug":150,"summary":151,"date":152,"readTime":10,"hasImage":11,"category":153,"tags":154,"tagSlugs":160},"\u002Fposts\u002Fpackage-a-python-lambda-as-a-docker-image","Package a Python Lambda as a Docker Image","package-a-python-lambda-as-a-docker-image","AWS Lambda is not just zip files. Here is how to package a Python function as a Docker container image, choose between arm64 and x86_64, test it locally with the Runtime Interface Emulator, push it to Amazon ECR, and invoke it directly without any API Gateway in front.","2026-04-08",{"id":13,"name":14,"slug":15,"hue":16},[155,156,157,158,159],{"name":14,"slug":15},{"name":20,"slug":21},{"name":23,"slug":24},{"name":39,"slug":40},{"name":127,"slug":128},[15,21,24,40,128],{"path":162,"title":163,"slug":164,"summary":165,"date":166,"readTime":167,"hasImage":11,"category":168,"tags":169,"tagSlugs":177},"\u002Fposts\u002Fwhats-new-in-php-8-5","What's New in PHP 8.5","whats-new-in-php-8-5","PHP 8.5 leans into composition and ergonomics. Here are its headline features with practical examples: the pipe operator, cloning with property updates, the NoDiscard attribute, array_first and array_last, the new URI extension, and backtraces on fatal errors.","2025-11-22",6,{"id":69,"name":58,"slug":59,"hue":70},[170,171,174],{"name":58,"slug":59},{"name":172,"slug":173},"PHP 8.5","php-8-5",{"name":175,"slug":176},"What's New","whats-new",[59,173,176],{"path":179,"title":180,"slug":181,"summary":182,"date":183,"readTime":167,"hasImage":11,"category":184,"tags":185,"tagSlugs":191},"\u002Fposts\u002Fwhats-new-in-php-8-4","What's New in PHP 8.4","whats-new-in-php-8-4","PHP 8.4 brought one of the biggest syntax additions of the 8.x line. Here are its headline features with practical examples: property hooks, asymmetric visibility, new without parentheses, the array_find family, the Deprecated attribute, and a modern HTML5 DOM parser.","2024-11-23",{"id":69,"name":58,"slug":59,"hue":70},[186,187,190],{"name":58,"slug":59},{"name":188,"slug":189},"PHP 8.4","php-8-4",{"name":175,"slug":176},[59,189,176],{"path":193,"title":194,"slug":195,"summary":196,"date":197,"readTime":198,"hasImage":86,"category":199,"tags":203,"tagSlugs":206},"\u002Fposts\u002Fstarting-with-rust-installation-first-program","Starting with Rust: From Installation to Your First Program","starting-with-rust-installation-first-program","Learn how to install Rust and write your first \"Hello, world!\" program.","2024-03-23",2,{"id":167,"name":200,"slug":201,"hue":202},"Rust","rust-programming",38,[204],{"name":205,"slug":205},"rust",[205],{"path":208,"title":209,"slug":210,"summary":211,"date":212,"readTime":213,"hasImage":11,"category":214,"tags":215,"tagSlugs":221},"\u002Fposts\u002Fwhats-new-in-php-8-3","What's New in PHP 8.3","whats-new-in-php-8-3","PHP 8.3 is a focused release full of quality-of-life wins. Here are its headline features with practical examples: typed class constants, the Override attribute, json_validate, dynamic constant fetch, random string generation, and readonly deep cloning.","2023-11-25",5,{"id":69,"name":58,"slug":59,"hue":70},[216,217,220],{"name":58,"slug":59},{"name":218,"slug":219},"PHP 8.3","php-8-3",{"name":175,"slug":176},[59,219,176],{"path":223,"title":224,"slug":225,"summary":226,"date":227,"readTime":198,"hasImage":86,"category":228,"tags":232,"tagSlugs":234},"\u002Fposts\u002Fflutter-version-management-fvm","Flutter Version Management","flutter-version-management-fvm","Managing multiple Flutter versions does not need not be a headache. Let's jump into FVM and see how it can simplify your Flutter journey.","2023-10-07",{"id":213,"name":229,"slug":230,"hue":231},"Flutter","flutter",230,[233],{"name":230,"slug":230},[230],{"path":236,"title":237,"slug":238,"summary":239,"date":227,"readTime":69,"hasImage":86,"category":240,"tags":241,"tagSlugs":243},"\u002Fposts\u002Fsetting-up-cocoapods-fvm","Setting Up CocoaPods for FVM-managed Flutter Projects","setting-up-cocoapods-fvm","A guide to installing CocoaPods for a Flutter project while using FVM to manage Flutter versions, ensuring a smooth setup for iOS development.",{"id":213,"name":229,"slug":230,"hue":231},[242],{"name":230,"slug":230},[230],{"path":245,"title":246,"slug":247,"summary":248,"date":227,"readTime":69,"hasImage":86,"category":249,"tags":250,"tagSlugs":252},"\u002Fposts\u002Ftroubleshooting-xcode-15-build-issues-flutter","Troubleshooting Xcode 15 Build Issues in Flutter Projects","troubleshooting-xcode-15-build-issues-flutter","Uncovering solutions to common issues faced when updating to Xcode 15 in a Flutter project using an older version of CocoaPods.",{"id":213,"name":229,"slug":230,"hue":231},[251],{"name":230,"slug":230},[230],{"path":254,"title":255,"slug":256,"summary":257,"date":258,"readTime":167,"hasImage":11,"category":259,"tags":260,"tagSlugs":266},"\u002Fposts\u002Fwhats-new-in-php-8-2","What's New in PHP 8.2","whats-new-in-php-8-2","PHP 8.2 polished the type system and the immutability story. Here are its headline features with practical examples: readonly classes, DNF types, standalone null, false and true types, the new Random extension, constants in traits, and sensitive parameter redaction.","2022-12-10",{"id":69,"name":58,"slug":59,"hue":70},[261,262,265],{"name":58,"slug":59},{"name":263,"slug":264},"PHP 8.2","php-8-2",{"name":175,"slug":176},[59,264,176],{"path":268,"title":269,"slug":270,"summary":271,"date":272,"readTime":167,"hasImage":11,"category":273,"tags":274,"tagSlugs":280},"\u002Fposts\u002Fwhats-new-in-php-8-1","What's New in PHP 8.1","whats-new-in-php-8-1","PHP 8.1 is one of the most loved releases of the 8.x line. Here are its headline features with practical examples: enums, readonly properties, first-class callable syntax, fibers, the never return type, and new in initializers.","2021-11-27",{"id":69,"name":58,"slug":59,"hue":70},[275,276,279],{"name":58,"slug":59},{"name":277,"slug":278},"PHP 8.1","php-8-1",{"name":175,"slug":176},[59,278,176],{"path":282,"title":283,"slug":284,"summary":285,"date":286,"readTime":167,"hasImage":11,"category":287,"tags":288,"tagSlugs":294},"\u002Fposts\u002Fwhats-new-in-php-8-0","What's New in PHP 8.0","whats-new-in-php-8-0","PHP 8.0 was a true major version. Here is a tour of its headline features with practical examples: constructor property promotion, named arguments, the match expression, the nullsafe operator, union types, and string helpers that finally read like English.","2020-11-28",{"id":69,"name":58,"slug":59,"hue":70},[289,290,293],{"name":58,"slug":59},{"name":291,"slug":292},"PHP 8.0","php-8-0",{"name":175,"slug":176},[59,292,176],{"path":296,"title":297,"slug":298,"summary":299,"date":300,"readTime":88,"hasImage":86,"category":301,"tags":302,"tagSlugs":304},"\u002Fposts\u002Fgit-tracking-a-remote-branch-upstream-for-changes","Git: Tracking a Remote Branch for Changes","git-tracking-a-remote-branch-upstream-for-changes","When you fork a project, you need a way to pull in changes from the original repository, usually called upstream. Here is how to wire up an upstream remote, actually sync your fork, and set up branch tracking so plain git pull and git push just work.","2018-11-04",{"id":88,"name":89,"slug":90,"hue":91},[303],{"name":94,"slug":90},[90],{"path":306,"title":307,"slug":308,"summary":309,"date":300,"readTime":310,"hasImage":11,"category":311,"tags":315,"tagSlugs":317},"\u002Fposts\u002Fjavascript-array-map-filter-reduce-functions","JavaScript's map, filter, and reduce methods","javascript-array-map-filter-reduce-functions","JavaScript provides some amazing functions that can be called against your arrays to help filter them, manipulate them, or even reduce them down to a single value or grouped values.",3,{"id":198,"name":312,"slug":313,"hue":314},"JavaScript","javascript",92,[316],{"name":312,"slug":313},[313],{"path":319,"title":320,"slug":321,"summary":322,"date":323,"readTime":69,"hasImage":11,"category":324,"tags":325,"tagSlugs":327},"\u002Fposts\u002Fphp-fizzbuzz-example","FizzBuzz in PHP: A Fresh Approach","php-fizzbuzz-example","FizzBuzz is a very popular programming question that tests your logic to see if you can build a simple program.","2018-11-02",{"id":69,"name":58,"slug":59,"hue":70},[326],{"name":58,"slug":59},[59],{"path":329,"title":330,"slug":331,"summary":332,"date":333,"readTime":198,"hasImage":11,"category":334,"tags":335,"tagSlugs":337},"\u002Fposts\u002Fphp-array-reduce","PHP's array_reduce is not only for outputting single values","php-array-reduce","PHP's array_reduce is a simple way to partition a set of data or return a single value. It is super powerful and worth spending time learning.","2018-11-01",{"id":69,"name":58,"slug":59,"hue":70},[336],{"name":58,"slug":59},[59],{"path":339,"title":340,"slug":341,"summary":342,"date":343,"readTime":167,"hasImage":86,"category":344,"tags":345,"tagSlugs":348},"\u002Fposts\u002Fimprove-your-git-workflow-with-git-flow","Improve Your Git Workflow with Git Flow","improve-your-git-workflow-with-git-flow","Git Flow is a structured branching model built around versioned, scheduled releases. Here is how its branches fit together, a hands-on walkthrough of features, releases and hotfixes, and an honest take on when it is still the right call.","2016-12-06",{"id":88,"name":89,"slug":90,"hue":91},[346,347],{"name":94,"slug":90},{"name":96,"slug":97},[90,97],{"path":350,"title":351,"slug":352,"summary":353,"date":354,"readTime":167,"hasImage":86,"category":355,"tags":359,"tagSlugs":363},"\u002Fposts\u002Fusing-css-transitions","Using CSS Transitions","using-css-transitions","CSS transitions are the standard way to apply transitions to your elements, and have been for years, replacing the old approach of using JavaScript. In this article, I'll go through each of the transition properties available, and provide examples of how to use them.","2016-12-05",{"id":310,"name":356,"slug":357,"hue":358},"HTML & CSS","html-css",55,[360],{"name":361,"slug":362},"CSS","css",[362],{"path":365,"title":366,"slug":367,"summary":368,"date":369,"readTime":88,"hasImage":86,"category":370,"tags":371,"tagSlugs":375},"\u002Fposts\u002Fstructuring-your-website-with-html-5-semantics","Structuring Your Website With HTML 5 Semantics","structuring-your-website-with-html-5-semantics","Prior to HTML 5, there was no real markup to help explain the intent behind your HTML code. The goal of HTML 5 was to offer a more readable way of writing your code, so that any author that comes after you can have an easier time going through what you've created.","2016-12-04",{"id":310,"name":356,"slug":357,"hue":358},[372],{"name":373,"slug":374},"HTML","html",[374],{"path":377,"title":378,"slug":379,"summary":380,"date":381,"readTime":198,"hasImage":86,"category":382,"tags":383,"tagSlugs":388},"\u002Fposts\u002Finterpolation-in-stylus-css-pre-processor","Interpolation in Stylus","interpolation-in-stylus-css-pre-processor","You can also use interpolation to improve your functions for reuse, as well as your other code within your stylesheet. The way it works is that you can wrap your expression within {}, which will then be outputted as the identifier.","2016-12-03",{"id":310,"name":356,"slug":357,"hue":358},[384,387],{"name":385,"slug":386},"Stylus","stylus",{"name":361,"slug":362},[386,362],{"path":390,"title":391,"slug":392,"summary":393,"date":394,"readTime":69,"hasImage":86,"category":395,"tags":396,"tagSlugs":399},"\u002Fposts\u002Fcreating-configuration-files-in-stylus-css-pre-processor","Creating Configuration Files In Stylus","creating-configuration-files-in-stylus-css-pre-processor","It's super simple to create a configuration file for instance that would manage your media query break points. You could also use a configuration file for managing colors, font sizes, and other variables such as gutter spacing and more.","2016-12-02",{"id":310,"name":356,"slug":357,"hue":358},[397,398],{"name":361,"slug":362},{"name":385,"slug":386},[362,386],{"path":401,"title":402,"slug":403,"summary":404,"date":405,"readTime":88,"hasImage":86,"category":406,"tags":407,"tagSlugs":410},"\u002Fposts\u002Fusing-functions-and-mixins-with-stylus-css-pre-processor","Using Functions and Mixins with Stylus","using-functions-and-mixins-with-stylus-css-pre-processor","Stylus allows you to create functions and mixins of reusable code for your stylesheets. You can also handle mathematical operations, unary operations, and more allowing you complete control over your stylesheets with ease.","2016-12-01",{"id":310,"name":356,"slug":357,"hue":358},[408,409],{"name":361,"slug":362},{"name":385,"slug":386},[362,386],{"path":412,"title":413,"slug":414,"summary":415,"date":416,"readTime":198,"hasImage":86,"category":417,"tags":418,"tagSlugs":421},"\u002Fposts\u002Fsetting-variables-in-stylus-css-pre-processor","Setting Variables in Stylus","setting-variables-in-stylus-css-pre-processor","Unlike CSS, in Stylus you can assign expressions to variables that can be reusable throughout your stylesheets.","2016-11-29",{"id":310,"name":356,"slug":357,"hue":358},[419,420],{"name":361,"slug":362},{"name":385,"slug":386},[362,386],{"path":423,"title":424,"slug":425,"summary":426,"date":427,"readTime":213,"hasImage":86,"category":428,"tags":429,"tagSlugs":432},"\u002Fposts\u002Fusing-selectors-in-stylus-css-pre-processor","Using Selectors in Stylus","using-selectors-in-stylus-css-pre-processor","Selectors are a way to pick the elements that you want styled. In Stylus, similar to CSS, you can apply a set of styles to any element by separating them by a comma delimited list. Stylus though, also allows you to select multiple elements by separating each on their own line.","2016-11-28",{"id":310,"name":356,"slug":357,"hue":358},[430,431],{"name":361,"slug":362},{"name":385,"slug":386},[362,386],{"path":434,"title":435,"slug":436,"summary":437,"date":438,"readTime":69,"hasImage":86,"category":439,"tags":440,"tagSlugs":443},"\u002Fposts\u002Flearning-stylus-a-css-pre-processor","Learning Stylus: A CSS Pre-Processor","learning-stylus-a-css-pre-processor","This mini-series will be a little different to how you may see other articles on my site. Really this article is more geared as notes for me as I go through the documentation for Stylus, and learn the ins and outs of this beautiful language.","2016-11-27",{"id":310,"name":356,"slug":357,"hue":358},[441,442],{"name":361,"slug":362},{"name":385,"slug":386},[362,386],{"path":445,"title":446,"slug":447,"summary":448,"date":449,"readTime":88,"hasImage":86,"category":450,"tags":451,"tagSlugs":454},"\u002Fposts\u002Fbem-methodology-overview-and-naming-conventions","BEM Methodology Overview and Naming Conventions","bem-methodology-overview-and-naming-conventions","BEM or Block Element Modifier is a naming convention used to help organize your code base. In this article, I discuss its uses within your CSS projects.","2016-11-26",{"id":310,"name":356,"slug":357,"hue":358},[452,453],{"name":361,"slug":362},{"name":373,"slug":374},[362,374],{"path":456,"title":457,"slug":458,"summary":459,"date":460,"readTime":69,"hasImage":86,"category":461,"tags":462,"tagSlugs":467},"\u002Fposts\u002Fintroduction-to-ecmascript-6","Introduction to ECMAScript 6","introduction-to-ecmascript-6","The latest in ECMAScript 6 introduces new features to JavaScript which makes it so much more fun to use, while solving problems that have been around for years. The intent of this article is to provide you with resources you can use to start learning ES6 today.","2016-11-25",{"id":198,"name":312,"slug":313,"hue":314},[463,464],{"name":312,"slug":313},{"name":465,"slug":466},"ECMAScript","ecmascript",[313,466],{"path":469,"title":470,"slug":471,"summary":472,"date":473,"readTime":310,"hasImage":86,"category":474,"tags":475,"tagSlugs":480},"\u002Fposts\u002Fbabel-installation-and-configuration","Babel Installation and Configuration","babel-installation-and-configuration","Babel offers a convenient way to transform your ES6 code to JavaScript that all browsers can understand. In this article we'll go over a basic configuration that will enable you to start using it with any project right away.","2016-11-24",{"id":198,"name":312,"slug":313,"hue":314},[476,477],{"name":312,"slug":313},{"name":478,"slug":479},"Babel","babel",[313,479],{"path":482,"title":483,"slug":484,"summary":485,"date":486,"readTime":69,"hasImage":86,"category":487,"tags":488,"tagSlugs":495},"\u002Fposts\u002Fconfiguring-stylus-css-pre-processor-with-gulp-and-sourcemaps","Configuring Stylus CSS Pre-Processor with Gulp and Sourcemaps","configuring-stylus-css-pre-processor-with-gulp-and-sourcemaps","In this article we'll go over how to configure your project to process Stylus files using Gulp. We'll also create source map file which your browser will use to help point you in the right direction of your files when developing","2016-11-23",{"id":198,"name":312,"slug":313,"hue":314},[489,490,491,492],{"name":312,"slug":313},{"name":385,"slug":386},{"name":361,"slug":362},{"name":493,"slug":494},"Gulp","gulp",[313,386,362,494],{"path":497,"title":498,"slug":499,"summary":500,"date":501,"readTime":198,"hasImage":86,"category":502,"tags":503,"tagSlugs":510},"\u002Fposts\u002Fconfiguring-gulp-with-less-css-pre-processor","Configuring Gulp With Less CSS Pre-Processor","configuring-gulp-with-less-css-pre-processor","Less is a CSS pre-processor allowing you to create variables, mixins, and functions in an effort to make your CSS more maintainable.","2016-11-22",{"id":198,"name":312,"slug":313,"hue":314},[504,505,506,509],{"name":493,"slug":494},{"name":312,"slug":313},{"name":507,"slug":508},"Less","less",{"name":361,"slug":362},[494,313,508,362],{"path":512,"title":513,"slug":514,"summary":515,"date":516,"readTime":198,"hasImage":11,"category":517,"tags":518,"tagSlugs":524},"\u002Fposts\u002Fusing-browser-sync-with-gulp-for-live-reloading","Using Browser Sync with Gulp for Live Reloading","using-browser-sync-with-gulp-for-live-reloading","Browser Sync is a nice tool to use while developing. It allows your browser to reload live when changes are made to your files. For instance, assuming we're watching our CSS file for changes we can have the browser auto refresh\u002Fsync when it sees those changes made.","2016-11-21",{"id":198,"name":312,"slug":313,"hue":314},[519,520,523],{"name":312,"slug":313},{"name":521,"slug":522},"Browser Sync","browser-sync",{"name":493,"slug":494},[313,522,494],{"path":526,"title":527,"slug":528,"summary":529,"date":530,"readTime":198,"hasImage":86,"category":531,"tags":532,"tagSlugs":538},"\u002Fposts\u002Fgulp-watch-automate-your-gulp-tasks","Gulp Watch: Automate Your Gulp Tasks","gulp-watch-automate-your-gulp-tasks","Gulp watch is perfect for when you're editing project files since it allows you to not have to run the gulp command manually each time.","2016-11-20",{"id":198,"name":312,"slug":313,"hue":314},[533,534,537],{"name":312,"slug":313},{"name":535,"slug":536},"Yarn","yarn",{"name":493,"slug":494},[313,536,494],{"path":540,"title":541,"slug":542,"summary":543,"date":544,"readTime":167,"hasImage":86,"category":545,"tags":546,"tagSlugs":550},"\u002Fposts\u002Fconfiguring-gulp-on-a-new-project","Configuring Gulp On A New Project","configuring-gulp-on-a-new-project","Gulp may seem like a scary thing to wrap your head around at first, but it's actually quite easy to start using once you understand the basics.","2016-11-19",{"id":198,"name":312,"slug":313,"hue":314},[547,548,549],{"name":312,"slug":313},{"name":493,"slug":494},{"name":535,"slug":536},[313,494,536],{"path":552,"title":553,"slug":554,"summary":555,"date":556,"readTime":310,"hasImage":86,"category":557,"tags":558,"tagSlugs":561},"\u002Fposts\u002Fyarn-publishing-a-package","Yarn: Publishing a Package","yarn-publishing-a-package","Publishing a package to the npm repository has never been simpler. With a few steps, you can create a package that is redistributable to all of your projects.","2016-11-18",{"id":198,"name":312,"slug":313,"hue":314},[559,560],{"name":312,"slug":313},{"name":535,"slug":536},[313,536],{"path":563,"title":564,"slug":565,"summary":566,"date":567,"readTime":310,"hasImage":86,"category":568,"tags":569,"tagSlugs":572},"\u002Fposts\u002Fyarn-fast-and-secure-dependency-management","Yarn: Fast and Secure Dependency Management","yarn-fast-and-secure-dependency-management","Yarn is a super simple dependency management tool which is way faster to use instead of traditional npm. It acts as a drop-in replacement, so you can get started using yarn right away. The best way to install yarn is by using npm.","2016-11-17",{"id":198,"name":312,"slug":313,"hue":314},[570,571],{"name":312,"slug":313},{"name":535,"slug":536},[313,536],{"path":574,"title":575,"slug":576,"summary":577,"date":578,"readTime":69,"hasImage":11,"category":579,"tags":580,"tagSlugs":582},"\u002Fposts\u002Fsupport-for-keys-in-list-or-its-new-shorthand-syntax-in-php","Support for keys in list(), or its new shorthand syntax [] in PHP","support-for-keys-in-list-or-its-new-shorthand-syntax-in-php","Now as of PHP 7.1, you can define the keys of your array that will be parsed when destructuring your arrays. Prior to PHP 7.1, you could only use arrays with numeric indexes. Now with this new addition, our lives just got easier.","2016-11-16",{"id":69,"name":58,"slug":59,"hue":70},[581],{"name":58,"slug":59},[59],{"path":584,"title":585,"slug":586,"summary":587,"date":588,"readTime":69,"hasImage":11,"category":589,"tags":590,"tagSlugs":592},"\u002Fposts\u002Ftype-hinting-with-the-iterable-pseudo-type-in-php","Type Hinting With The Iterable pseudo-type In PHP","type-hinting-with-the-iterable-pseudo-type-in-php","As of PHP 7.1, you can now type hint your method\u002Ffunction arguments with the keyword iterable for handling arrays or even objects that implement the Traversable interface.","2016-11-15",{"id":69,"name":58,"slug":59,"hue":70},[591],{"name":58,"slug":59},[59],{"path":594,"title":595,"slug":596,"summary":597,"date":598,"readTime":69,"hasImage":11,"category":599,"tags":600,"tagSlugs":602},"\u002Fposts\u002Ftype-hinting-callable-functions-in-php","Type Hinting Callable Functions in PHP","type-hinting-callable-functions-in-php","As of PHP 5.4, you can type hint your method arguments with the callable keyword allowing you to enforce the type of data that is passed via your arguments.","2016-11-14",{"id":69,"name":58,"slug":59,"hue":70},[601],{"name":58,"slug":59},[59],{"path":604,"title":605,"slug":606,"summary":607,"date":608,"readTime":69,"hasImage":11,"category":609,"tags":610,"tagSlugs":612},"\u002Fposts\u002Fsetting-visibility-for-your-class-constants-in-php","Setting Visibility for Your Class Constants in PHP","setting-visibility-for-your-class-constants-in-php","Now in PHP 7.1+, you can set different visibility modifiers for each of your class constants. The available visibility modifiers consist of public, protected, and private.","2016-11-13",{"id":69,"name":58,"slug":59,"hue":70},[611],{"name":58,"slug":59},[59],{"path":614,"title":615,"slug":616,"summary":617,"date":618,"readTime":69,"hasImage":11,"category":619,"tags":620,"tagSlugs":622},"\u002Fposts\u002Fanonymous-classes-php","Using Anonymous Classes in PHP","anonymous-classes-php","As of PHP 7, you can now create quick throwaway objects for use within your projects. This can be especially useful for your automated tests, for instance, with allowing you to create quick implementations of your interfaces.","2016-11-12",{"id":69,"name":58,"slug":59,"hue":70},[621],{"name":58,"slug":59},[59],{"path":624,"title":625,"slug":626,"summary":627,"date":628,"readTime":69,"hasImage":11,"category":629,"tags":630,"tagSlugs":632},"\u002Fposts\u002Fsymmetric-array-destructuring-in-php","Symmetric Array Destructuring in PHP","symmetric-array-destructuring-in-php","As of PHP 7.1, you can now use the shorthand array syntax to destructure your arrays for assignment. Previously you would have had to use a function like list, but now you can use the simple new array shorthand syntax.","2016-11-11",{"id":69,"name":58,"slug":59,"hue":70},[631],{"name":58,"slug":59},[59],{"path":634,"title":635,"slug":636,"summary":637,"date":638,"readTime":198,"hasImage":11,"category":639,"tags":640,"tagSlugs":642},"\u002Fposts\u002Fphp-array-map-to-format-your-arrays-without-loops","Using PHP's array_map to format your arrays without loops","php-array-map-to-format-your-arrays-without-loops","So let's face it, loops are a bit boring. So how can we mix it up? Let's assume we have a case where we have a CSV file that we want to quickly parse.","2016-11-10",{"id":69,"name":58,"slug":59,"hue":70},[641],{"name":58,"slug":59},[59],{"path":644,"title":645,"slug":646,"summary":647,"date":648,"readTime":13,"hasImage":11,"category":649,"tags":650,"tagSlugs":652},"\u002Fposts\u002Fsolid-principles-in-php","SOLID Principles in PHP","solid-principles-in-php","The 5 basic principles for Object-Oriented Design, SOLID, were first created in an effort to improve maintainability in our code bases. SOLID is a mnemonic acronym that stands for each of the following principles: Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion.","2016-11-09",{"id":69,"name":58,"slug":59,"hue":70},[651],{"name":58,"slug":59},[59],{"path":654,"title":655,"slug":656,"summary":657,"date":658,"readTime":69,"hasImage":11,"category":659,"tags":660,"tagSlugs":662},"\u002Fposts\u002Ffiltering-arrays-without-using-loops-in-php","Filtering Arrays Without Using Loops in PHP","filtering-arrays-without-using-loops-in-php","PHP has a built-in function called array_filter that allows you to filter through your arrays without the need for a loop. Personally, this approach feels much cleaner to me and simpler to comprehend.","2016-11-08",{"id":69,"name":58,"slug":59,"hue":70},[661],{"name":58,"slug":59},[59],{"path":664,"title":665,"slug":666,"summary":667,"date":668,"readTime":69,"hasImage":11,"category":669,"tags":670,"tagSlugs":672},"\u002Fposts\u002Fvoid-return-types-in-php","Void Return Types in PHP","void-return-types-in-php","As of PHP 7.1, we can now use void return types within our methods. This is useful for cases where you have methods that are just setting or processing data without the need of returning any values.","2016-11-07",{"id":69,"name":58,"slug":59,"hue":70},[671],{"name":58,"slug":59},[59],{"path":674,"title":675,"slug":676,"summary":677,"date":678,"readTime":69,"hasImage":11,"category":679,"tags":680,"tagSlugs":682},"\u002Fposts\u002Ftype-hinting-with-nullable-types-in-php","Type Hinting with Nullable Types in PHP","type-hinting-with-nullable-types-in-php","As of PHP 7.1, you can now set your type declarations as nullable by simply prefixing them with a question mark ?. In doing so a null value can be passed in as a parameter or returned as a value for your methods.","2016-11-06",{"id":69,"name":58,"slug":59,"hue":70},[681],{"name":58,"slug":59},[59],{"path":684,"title":685,"slug":686,"summary":687,"date":688,"readTime":69,"hasImage":11,"category":689,"tags":690,"tagSlugs":692},"\u002Fposts\u002Fphp-group-multiple-use-declarations","PHP Group Multiple use Declarations","php-group-multiple-use-declarations","As of PHP 7, you can now group your imported classes, functions, and constants from under the same namespace.","2016-11-05",{"id":69,"name":58,"slug":59,"hue":70},[691],{"name":58,"slug":59},[59],{"path":694,"title":695,"slug":696,"summary":697,"date":698,"readTime":69,"hasImage":11,"category":699,"tags":700,"tagSlugs":702},"\u002Fposts\u002Fphp-null-coalescing-operator","PHP Null Coalescing Operator","php-null-coalescing-operator","One of my new favorite additions to PHP 7, is the Null Coalescing Operator. It cleans up your code by removing a tedious step of checking if some value is isset() and not NULL and returning it or if not setting a default.","2016-11-04",{"id":69,"name":58,"slug":59,"hue":70},[701],{"name":58,"slug":59},[59],{"path":704,"title":705,"slug":706,"summary":707,"date":708,"readTime":198,"hasImage":11,"category":709,"tags":710,"tagSlugs":712},"\u002Fposts\u002Fphp-spaceship-operator","PHP Spaceship Operator","php-spaceship-operator","One of the new features to hit PHP 7 is the Spaceship Operator. This new trick helps improve the way you'd compare 2 expressions. In short, the comparison returns 1 of 3 values (-1, 0, or 1) depending on the result of the comparison.","2016-11-03",{"id":69,"name":58,"slug":59,"hue":70},[711],{"name":58,"slug":59},[59],{"path":714,"title":715,"slug":716,"summary":717,"date":718,"readTime":310,"hasImage":11,"category":719,"tags":720,"tagSlugs":722},"\u002Fposts\u002Freturn-type-declarations-in-php","Return Type Declarations in PHP","return-type-declarations-in-php","PHP 7 now makes it possible to declare return types for your methods. This allows you better control over the data that will be returned from each method in your application.","2016-11-02",{"id":69,"name":58,"slug":59,"hue":70},[721],{"name":58,"slug":59},[59],{"path":724,"title":725,"slug":726,"summary":727,"date":728,"readTime":69,"hasImage":11,"category":729,"tags":730,"tagSlugs":732},"\u002Fposts\u002Fscalar-type-hints-php","Scalar Type Hints in PHP","scalar-type-hints-php","Starting with PHP 7.0, it's now possible to declare scalar type hints for your method arguments. Previously, we were able to use array and callable, but now with PHP 7+, we have much more control.","2016-11-01",{"id":69,"name":58,"slug":59,"hue":70},[731],{"name":58,"slug":59},[59],[734,741,747,753,759,765,771,777],{"id":735,"description":736,"extension":737,"hue":70,"meta":738,"name":58,"slug":59,"stem":739,"weight":69,"__hash__":740},"categories\u002Fcategories\u002Fphp.json","PHP articles and tutorials ranging from new language features to using interesting packages.","json",{},"categories\u002Fphp","h_EmN4YMO4b2mBt3MPLs7RvscJx0NBmwDIZPxqPqKLE",{"id":742,"description":743,"extension":737,"hue":314,"meta":744,"name":312,"slug":313,"stem":745,"weight":198,"__hash__":746},"categories\u002Fcategories\u002Fjavascript.json","JavaScript articles and tutorials ranging from new language features to using interesting packages.",{},"categories\u002Fjavascript","7gmVgkw5BRo26i1bFoSv96bwDJ4nTtZcJ9Ud6u5p0yk",{"id":748,"description":749,"extension":737,"hue":358,"meta":750,"name":356,"slug":357,"stem":751,"weight":310,"__hash__":752},"categories\u002Fcategories\u002Fhtml-css.json","HTML & CSS articles and tutorials ranging from new language features to using interesting packages.",{},"categories\u002Fhtml-css","vXvPlRA-iaeCJ64Wi3sLyUR0kqL48zYcZWORRqt8N70",{"id":754,"description":755,"extension":737,"hue":91,"meta":756,"name":89,"slug":90,"stem":757,"weight":88,"__hash__":758},"categories\u002Fcategories\u002Fgit.json","Git articles and tutorials ranging from new language features to different workflows.",{},"categories\u002Fgit","qOqFsFTKI9XB444UodUKW_3AakFadHzW-ss8V-maUmE",{"id":760,"description":761,"extension":737,"hue":231,"meta":762,"name":229,"slug":230,"stem":763,"weight":213,"__hash__":764},"categories\u002Fcategories\u002Fflutter.json","Dive into Flutter, the open-source UI software development toolkit, as we explore its capabilities in creating natively compiled applications for mobile, web, and desktop from a single codebase.",{},"categories\u002Fflutter","aD1moU8CgoYt4FRnSeA4Iy9xxnnopdEKBEYP2arAzdI",{"id":766,"description":767,"extension":737,"hue":202,"meta":768,"name":200,"slug":201,"stem":769,"weight":167,"__hash__":770},"categories\u002Fcategories\u002Frust-programming.json","From setting up your environment to advanced concepts, this is your go-to resource for all things Rust.",{},"categories\u002Frust-programming","LscnqSsk-htWc9yZg9eXaIUJwNfTK5oaZOClYKagNC4",{"id":772,"description":773,"extension":737,"hue":16,"meta":774,"name":14,"slug":15,"stem":775,"weight":13,"__hash__":776},"categories\u002Fcategories\u002Faws.json","Hands-on AWS for builders: Lambda, containers and ECR, API Gateway, Step Functions, and the serverless glue in between.",{},"categories\u002Faws","gU2fpFeHDrBz8RJy54lYK7NJxCnMyma_fblrxDoJByQ",{"id":778,"description":779,"extension":737,"hue":54,"meta":780,"name":52,"slug":53,"stem":781,"weight":51,"__hash__":782},"categories\u002Fcategories\u002Fpython.json","Python for people who already build software: a practical, PHP-developer-friendly path into the language and its ecosystem.",{},"categories\u002Fpython","B6ssFzfg4dLAIzOltx3jcPOk7qghiDxoDD74rhlQ9kU",{"id":784,"title":31,"body":785,"category":1576,"date":9,"description":1577,"extension":1578,"hasImage":11,"meta":1579,"navigation":11,"path":30,"readTime":10,"seo":1580,"slug":32,"stem":1581,"summary":33,"tagSlugs":1582,"tags":1583,"__hash__":1589},"posts\u002Fposts\u002Fdeploy-a-lambda-container-image-with-ecr-and-the-console.md",{"type":786,"value":787,"toc":1568},"minimark",[788,807,810,815,818,888,891,895,902,1010,1029,1033,1036,1097,1112,1116,1131,1138,1162,1171,1175,1182,1221,1228,1413,1416,1508,1523,1527,1547,1555,1564],[789,790,791,792,797,798,802,803,806],"p",{},"In the ",[793,794,796],"a",{"href":795},"\u002Farticles\u002Fbuild-a-qr-code-lambda-and-call-it-from-laravel","previous part"," we built a QR code Lambda, ran it locally in Docker, and called it from Laravel, all without an AWS account. Now we put it online. This part is mostly clicking through the AWS Console, with a couple of Docker commands you have already run. You will need an AWS account, the AWS CLI configured (",[799,800,801],"code",{},"aws configure","), and Docker running with the ",[799,804,805],{},"qr-generator"," image you built last time.",[789,808,809],{},"The path is short: store the image in Amazon ECR (Elastic Container Registry, AWS's private Docker registry), then create a Lambda from it.",[811,812,814],"h2",{"id":813},"create-an-ecr-repository","Create an ECR repository",[789,816,817],{},"A repository is just a named home for one image and its tags.",[819,820,821,834,845,859,873,883],"ol",{},[822,823,824,825,829,830,833],"li",{},"Open the ",[826,827,828],"strong",{},"Amazon ECR console"," and pick your ",[826,831,832],{},"Region"," (top right). Remember which one; it has to match your function later.",[822,835,836,837,840,841,844],{},"Choose ",[826,838,839],{},"Private repositories",", then ",[826,842,843],{},"Create repository",".",[822,846,847,848,851,852,854,855,858],{},"For ",[826,849,850],{},"Repository name",", enter ",[799,853,805],{}," (lowercase; it may include a namespace like ",[799,856,857],{},"team\u002Fqr-generator",").",[822,860,847,861,864,865,868,869,872],{},[826,862,863],{},"Image tag immutability",", leave it ",[826,866,867],{},"Mutable"," so you can re-push ",[799,870,871],{},":latest"," while iterating.",[822,874,875,876,879,880,844],{},"Leave ",[826,877,878],{},"Encryption"," on the default ",[826,881,882],{},"AES-256",[822,884,836,885,844],{},[826,886,887],{},"Create",[789,889,890],{},"That is the whole repository. It is empty until we push an image into it.",[811,892,894],{"id":893},"push-your-image","Push your image",[789,896,897,898,901],{},"Select the new repository and choose ",[826,899,900],{},"View push commands",". The console prints four commands with your account ID and Region already filled in. They log Docker in to your registry, then build, tag, and push:",[903,904,909],"pre",{"className":905,"code":906,"language":907,"meta":908,"style":908},"language-bash shiki shiki-themes github-dark github-dark","aws ecr get-login-password --region us-east-1 \\\n  | docker login --username AWS --password-stdin 111122223333.dkr.ecr.us-east-1.amazonaws.com\n\ndocker build -t qr-generator .\n\ndocker tag qr-generator:latest 111122223333.dkr.ecr.us-east-1.amazonaws.com\u002Fqr-generator:latest\n\ndocker push 111122223333.dkr.ecr.us-east-1.amazonaws.com\u002Fqr-generator:latest\n","bash","",[799,910,911,935,959,964,980,984,997,1001],{"__ignoreMap":908},[912,913,915,918,922,925,929,932],"span",{"class":914,"line":69},"line",[912,916,15],{"class":917},"sFR8T",[912,919,921],{"class":920},"s4wv1"," ecr",[912,923,924],{"class":920}," get-login-password",[912,926,928],{"class":927},"s8ozJ"," --region",[912,930,931],{"class":920}," us-east-1",[912,933,934],{"class":927}," \\\n",[912,936,937,941,944,947,950,953,956],{"class":914,"line":198},[912,938,940],{"class":939},"sOPea","  |",[912,942,943],{"class":917}," docker",[912,945,946],{"class":920}," login",[912,948,949],{"class":927}," --username",[912,951,952],{"class":920}," AWS",[912,954,955],{"class":927}," --password-stdin",[912,957,958],{"class":920}," 111122223333.dkr.ecr.us-east-1.amazonaws.com\n",[912,960,961],{"class":914,"line":310},[912,962,963],{"emptyLinePlaceholder":11},"\n",[912,965,966,968,971,974,977],{"class":914,"line":88},[912,967,24],{"class":917},[912,969,970],{"class":920}," build",[912,972,973],{"class":927}," -t",[912,975,976],{"class":920}," qr-generator",[912,978,979],{"class":920}," .\n",[912,981,982],{"class":914,"line":213},[912,983,963],{"emptyLinePlaceholder":11},[912,985,986,988,991,994],{"class":914,"line":167},[912,987,24],{"class":917},[912,989,990],{"class":920}," tag",[912,992,993],{"class":920}," qr-generator:latest",[912,995,996],{"class":920}," 111122223333.dkr.ecr.us-east-1.amazonaws.com\u002Fqr-generator:latest\n",[912,998,999],{"class":914,"line":13},[912,1000,963],{"emptyLinePlaceholder":11},[912,1002,1003,1005,1008],{"class":914,"line":51},[912,1004,24],{"class":917},[912,1006,1007],{"class":920}," push",[912,1009,996],{"class":920},[789,1011,1012,1013,1016,1017,1020,1021,1024,1025,1028],{},"Swap ",[799,1014,1015],{},"111122223333"," for your account ID (the console does this for you). You already built the image in the previous part, so the ",[799,1018,1019],{},"docker build"," step just confirms it is current. When ",[799,1022,1023],{},"docker push"," finishes, refresh the repository in the console and you will see your image with the ",[799,1026,1027],{},"latest"," tag.",[811,1030,1032],{"id":1031},"create-the-lambda-from-the-image","Create the Lambda from the image",[789,1034,1035],{},"Now point a function at that image.",[819,1037,1038,1047,1054,1061,1080,1093],{},[822,1039,824,1040,1043,1044,844],{},[826,1041,1042],{},"Lambda console"," and choose ",[826,1045,1046],{},"Create function",[822,1048,1049,1050,1053],{},"Pick ",[826,1051,1052],{},"Container image"," (not \"Author from scratch\").",[822,1055,847,1056,851,1059,844],{},[826,1057,1058],{},"Function name",[799,1060,805],{},[822,1062,847,1063,1066,1067,1070,1071,1073,1074,1076,1077,844],{},[826,1064,1065],{},"Container image URI",", choose ",[826,1068,1069],{},"Browse images",", select the ",[799,1072,805],{}," repository, pick the ",[799,1075,1027],{}," tag, and choose ",[826,1078,1079],{},"Select image",[822,1081,847,1082,1084,1085,1088,1089,1092],{},[826,1083,77],{},", choose the one your image was built for. On an Apple Silicon Mac that is ",[826,1086,1087],{},"arm64","; on an Intel machine it is ",[826,1090,1091],{},"x86_64",". It has to match the image, because a Lambda image is built for exactly one architecture.",[822,1094,836,1095,844],{},[826,1096,1046],{},[789,1098,1099,1100,1103,1104,1107,1108,1111],{},"A few things to know. The ECR repository must be in the ",[826,1101,1102],{},"same Region"," as the function. Right after you create it, the function sits in a ",[826,1105,1106],{},"Pending"," state for a few seconds while Lambda optimizes the image, then flips to ",[826,1109,1110],{},"Active","; you cannot invoke it until it is Active. And Lambda needs permission to pull the image: when the repository is in the same account, it adds that permission for you automatically as long as your user is allowed to set repository policies.",[811,1113,1115],{"id":1114},"configure-and-test","Configure and test",[789,1117,1118,1119,1122,1123,1126,1127,1130],{},"Open the function. Under the ",[826,1120,1121],{},"Configuration"," tab you can bump ",[826,1124,1125],{},"Memory"," (try 512 MB) and ",[826,1128,1129],{},"Timeout"," (30 seconds is plenty), though the defaults work for our tiny function.",[789,1132,1133,1134,1137],{},"Then the satisfying part. Go to the ",[826,1135,1136],{},"Test"," tab, create a new test event, and give it the same shape we used locally:",[903,1139,1142],{"className":1140,"code":1141,"language":737,"meta":908,"style":908},"language-json shiki shiki-themes github-dark github-dark","{ \"data\": \"https:\u002F\u002Ffranktheprogrammer.com\" }\n",[799,1143,1144],{"__ignoreMap":908},[912,1145,1146,1150,1153,1156,1159],{"class":914,"line":69},[912,1147,1149],{"class":1148},"suv1-","{ ",[912,1151,1152],{"class":927},"\"data\"",[912,1154,1155],{"class":1148},": ",[912,1157,1158],{"class":920},"\"https:\u002F\u002Ffranktheprogrammer.com\"",[912,1160,1161],{"class":1148}," }\n",[789,1163,836,1164,1166,1167,1170],{},[826,1165,1136],{},". You will see the function's JSON response, including the ",[799,1168,1169],{},"qr_base64"," field, plus the execution logs and the duration. That is your container, running on AWS, producing the same result it did on your laptop.",[811,1172,1174],{"id":1173},"going-further-a-function-url-your-laravel-app-can-call","Going further: a Function URL your Laravel app can call",[789,1176,1177,1178,1181],{},"The console Test is great, but your Laravel app wants a real endpoint. The simplest one is a ",[826,1179,1180],{},"Function URL",", a dedicated HTTPS address for this function with no API Gateway needed.",[819,1183,1184,1195,1208],{},[822,1185,1186,1187,1189,1190,840,1192,844],{},"On the function, open the ",[826,1188,1121],{}," tab, choose ",[826,1191,1180],{},[826,1193,1194],{},"Create function URL",[822,1196,847,1197,1066,1200,1203,1204,1207],{},[826,1198,1199],{},"Auth type",[826,1201,1202],{},"NONE"," for a quick public demo (anyone with the URL can call it, so treat it as semi-secret), or ",[826,1205,1206],{},"AWS_IAM"," to require signed requests.",[822,1209,1210,1211,840,1214,1217,1218,844],{},"Optionally set ",[826,1212,1213],{},"CORS",[826,1215,1216],{},"Save",". You get a URL like ",[799,1219,1220],{},"https:\u002F\u002Fabc123.lambda-url.us-east-1.amazonaws.com",[789,1222,1223,1224,1227],{},"A Function URL delivers the request as an HTTP event, which wraps your posted JSON in a ",[799,1225,1226],{},"body"," string rather than passing it as the top-level event. Two extra lines make the handler accept both shapes, so it still works for the console Test and an SDK call:",[903,1229,1232],{"className":1230,"code":1231,"language":53,"meta":908,"style":908},"language-python shiki shiki-themes github-dark github-dark","import base64\nimport io\nimport json\nimport qrcode\n\n\ndef handler(event, context):\n    # A Function URL wraps the POST body as a JSON string; a direct invoke passes it as-is.\n    if event.get(\"body\"):\n        event = json.loads(event[\"body\"])\n\n    data = event.get(\"data\", \"https:\u002F\u002Ffranktheprogrammer.com\")\n    img = qrcode.make(data)\n    buffer = io.BytesIO()\n    img.save(buffer, format=\"PNG\")\n    return {\n        \"data\": data,\n        \"qr_base64\": base64.b64encode(buffer.getvalue()).decode(),\n    }\n",[799,1233,1234,1242,1249,1256,1263,1267,1271,1282,1288,1302,1318,1322,1341,1352,1363,1380,1389,1398,1407],{"__ignoreMap":908},[912,1235,1236,1239],{"class":914,"line":69},[912,1237,1238],{"class":939},"import",[912,1240,1241],{"class":1148}," base64\n",[912,1243,1244,1246],{"class":914,"line":198},[912,1245,1238],{"class":939},[912,1247,1248],{"class":1148}," io\n",[912,1250,1251,1253],{"class":914,"line":310},[912,1252,1238],{"class":939},[912,1254,1255],{"class":1148}," json\n",[912,1257,1258,1260],{"class":914,"line":88},[912,1259,1238],{"class":939},[912,1261,1262],{"class":1148}," qrcode\n",[912,1264,1265],{"class":914,"line":213},[912,1266,963],{"emptyLinePlaceholder":11},[912,1268,1269],{"class":914,"line":167},[912,1270,963],{"emptyLinePlaceholder":11},[912,1272,1273,1276,1279],{"class":914,"line":13},[912,1274,1275],{"class":939},"def",[912,1277,1278],{"class":917}," handler",[912,1280,1281],{"class":1148},"(event, context):\n",[912,1283,1284],{"class":914,"line":51},[912,1285,1287],{"class":1286},"sJ8bj","    # A Function URL wraps the POST body as a JSON string; a direct invoke passes it as-is.\n",[912,1289,1290,1293,1296,1299],{"class":914,"line":67},[912,1291,1292],{"class":939},"    if",[912,1294,1295],{"class":1148}," event.get(",[912,1297,1298],{"class":920},"\"body\"",[912,1300,1301],{"class":1148},"):\n",[912,1303,1304,1307,1310,1313,1315],{"class":914,"line":10},[912,1305,1306],{"class":1148},"        event ",[912,1308,1309],{"class":939},"=",[912,1311,1312],{"class":1148}," json.loads(event[",[912,1314,1298],{"class":920},[912,1316,1317],{"class":1148},"])\n",[912,1319,1320],{"class":914,"line":136},[912,1321,963],{"emptyLinePlaceholder":11},[912,1323,1324,1327,1329,1331,1333,1336,1338],{"class":914,"line":49},[912,1325,1326],{"class":1148},"    data ",[912,1328,1309],{"class":939},[912,1330,1295],{"class":1148},[912,1332,1152],{"class":920},[912,1334,1335],{"class":1148},", ",[912,1337,1158],{"class":920},[912,1339,1340],{"class":1148},")\n",[912,1342,1344,1347,1349],{"class":914,"line":1343},13,[912,1345,1346],{"class":1148},"    img ",[912,1348,1309],{"class":939},[912,1350,1351],{"class":1148}," qrcode.make(data)\n",[912,1353,1355,1358,1360],{"class":914,"line":1354},14,[912,1356,1357],{"class":1148},"    buffer ",[912,1359,1309],{"class":939},[912,1361,1362],{"class":1148}," io.BytesIO()\n",[912,1364,1366,1369,1373,1375,1378],{"class":914,"line":1365},15,[912,1367,1368],{"class":1148},"    img.save(buffer, ",[912,1370,1372],{"class":1371},"s-3mD","format",[912,1374,1309],{"class":939},[912,1376,1377],{"class":920},"\"PNG\"",[912,1379,1340],{"class":1148},[912,1381,1383,1386],{"class":914,"line":1382},16,[912,1384,1385],{"class":939},"    return",[912,1387,1388],{"class":1148}," {\n",[912,1390,1392,1395],{"class":914,"line":1391},17,[912,1393,1394],{"class":920},"        \"data\"",[912,1396,1397],{"class":1148},": data,\n",[912,1399,1401,1404],{"class":914,"line":1400},18,[912,1402,1403],{"class":920},"        \"qr_base64\"",[912,1405,1406],{"class":1148},": base64.b64encode(buffer.getvalue()).decode(),\n",[912,1408,1410],{"class":914,"line":1409},19,[912,1411,1412],{"class":1148},"    }\n",[789,1414,1415],{},"Rebuild and push the image, redeploy (see below), and Laravel just swaps the local emulator URL for the Function URL:",[903,1417,1420],{"className":1418,"code":1419,"language":59,"meta":908,"style":908},"language-php shiki shiki-themes github-dark github-dark","use Illuminate\\Support\\Facades\\Http;\n\n$response = Http::post('https:\u002F\u002Fabc123.lambda-url.us-east-1.amazonaws.com', [\n    'data' => 'https:\u002F\u002Ffranktheprogrammer.com',\n]);\n\n$qr = $response->json('qr_base64');\n",[799,1421,1422,1433,1437,1462,1476,1481,1485],{"__ignoreMap":908},[912,1423,1424,1427,1430],{"class":914,"line":69},[912,1425,1426],{"class":939},"use",[912,1428,1429],{"class":927}," Illuminate\\Support\\Facades\\Http",[912,1431,1432],{"class":1148},";\n",[912,1434,1435],{"class":914,"line":198},[912,1436,963],{"emptyLinePlaceholder":11},[912,1438,1439,1442,1444,1447,1450,1453,1456,1459],{"class":914,"line":310},[912,1440,1441],{"class":1148},"$response ",[912,1443,1309],{"class":939},[912,1445,1446],{"class":927}," Http",[912,1448,1449],{"class":939},"::",[912,1451,1452],{"class":917},"post",[912,1454,1455],{"class":1148},"(",[912,1457,1458],{"class":920},"'https:\u002F\u002Fabc123.lambda-url.us-east-1.amazonaws.com'",[912,1460,1461],{"class":1148},", [\n",[912,1463,1464,1467,1470,1473],{"class":914,"line":88},[912,1465,1466],{"class":920},"    'data'",[912,1468,1469],{"class":939}," =>",[912,1471,1472],{"class":920}," 'https:\u002F\u002Ffranktheprogrammer.com'",[912,1474,1475],{"class":1148},",\n",[912,1477,1478],{"class":914,"line":213},[912,1479,1480],{"class":1148},"]);\n",[912,1482,1483],{"class":914,"line":167},[912,1484,963],{"emptyLinePlaceholder":11},[912,1486,1487,1490,1492,1495,1498,1500,1502,1505],{"class":914,"line":13},[912,1488,1489],{"class":1148},"$qr ",[912,1491,1309],{"class":939},[912,1493,1494],{"class":1148}," $response",[912,1496,1497],{"class":939},"->",[912,1499,737],{"class":917},[912,1501,1455],{"class":1148},[912,1503,1504],{"class":920},"'qr_base64'",[912,1506,1507],{"class":1148},");\n",[789,1509,1510,1511,1514,1515,1518,1519,1522],{},"Returning a plain array from the handler lets the Function URL auto-wrap it as a ",[799,1512,1513],{},"200"," JSON response, so ",[799,1516,1517],{},"$response->json('qr_base64')"," reads exactly like it did locally. If you want the endpoint to return the raw PNG instead (so hitting the URL in a browser shows the image), the reference ",[793,1520,132],{"href":1521},"\u002Farticles\u002Fgive-your-lambda-an-http-front-door"," shows the response shape for that.",[811,1524,1526],{"id":1525},"updating-later","Updating later",[789,1528,1529,1530,1533,1534,1537,1538,1540,1541,1543,1544,1546],{},"When you change the code, rebuild and push the image again (the same push commands), then tell the function to pick it up: on the function, choose ",[826,1531,1532],{},"Deploy new image"," (under the ",[826,1535,1536],{},"Image"," section), ",[826,1539,1069],{},", select the new image, and ",[826,1542,1216],{},". A tag like ",[799,1545,1027],{}," resolves to a specific image version at deploy time, so pushing alone does not update a running function; the redeploy is what repoints it.",[789,1548,1549,1550,1554],{},"That is the whole journey: a function you wrote and ran on your laptop is now live on AWS, testable in the console, and callable from Laravel over HTTPS. Clicking through the console is the best way to understand what each piece is. Once it feels familiar, the reference ",[793,1551,1553],{"href":1552},"\u002Farticles\u002Fpackage-a-python-lambda-as-a-docker-image","AWS Lambda series"," shows how to do all of this from the command line and automate it with infrastructure as code, so you never have to click it again.",[1556,1557,1559],"note",{"label":1558},"Build your first Lambda",[789,1560,1561,1562],{},"The final part of a two-part beginner walkthrough.\nPrevious: ",[793,1563,6],{"href":795},[1565,1566,1567],"style",{},"html pre.shiki code .sFR8T, html code.shiki .sFR8T{--shiki-default:#B392F0;--shiki-dark:#B392F0}html pre.shiki code .s4wv1, html code.shiki .s4wv1{--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html pre.shiki code .s8ozJ, html code.shiki .s8ozJ{--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .sOPea, html code.shiki .sOPea{--shiki-default:#F97583;--shiki-dark:#F97583}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .suv1-, html code.shiki .suv1-{--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .s-3mD, html code.shiki .s-3mD{--shiki-default:#FFAB70;--shiki-dark:#FFAB70}",{"title":908,"searchDepth":198,"depth":198,"links":1569},[1570,1571,1572,1573,1574,1575],{"id":813,"depth":198,"text":814},{"id":893,"depth":198,"text":894},{"id":1031,"depth":198,"text":1032},{"id":1114,"depth":198,"text":1115},{"id":1173,"depth":198,"text":1174},{"id":1525,"depth":198,"text":1526},{"id":13,"name":14,"slug":15,"hue":16},"In the previous part we built a QR code Lambda, ran it locally in Docker, and called it from Laravel, all without an AWS account. Now we put it online. This part is mostly clicking through the AWS Console, with a couple of Docker commands you have already run. You will need an AWS account, the AWS CLI configured (aws configure), and Docker running with the qr-generator image you built last time.","md",{},{"title":31,"description":1577},"posts\u002Fdeploy-a-lambda-container-image-with-ecr-and-the-console",[15,21,40,24,27],[1584,1585,1586,1587,1588],{"name":14,"slug":15},{"name":20,"slug":21},{"name":39,"slug":40},{"name":23,"slug":24},{"name":26,"slug":27},"4G7lTanyP4Hvmghp0Mi1u5wVbTsUn9YcBwrfsArYIpc",1781531463925]