{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/9fe3bf0869a741ea8aded33dc6a2dd69\" frameborder=\"0\" width=\"1280\" height=\"960\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":960,"width":1280,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":960,"thumbnail_width":1280,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/9fe3bf0869a741ea8aded33dc6a2dd69-f16694b5f512fdc4.gif","duration":299.605,"title":"Terraform Deploys a Global Next.js Portfolio","description":"This Loom walks through the architecture and Terraform implementation for deploying a globally accessible static Next.js portfolio on AWS. The creator starts from first principles by translating client requirements like high availability, fast global performance, scalability, and cost control into an S3 plus CloudFront solution, rather than starting with specific AWS services. Next.js produces a static export in the out directory, which is uploaded to an Amazon S3 bucket, with CloudFront serving cached content at edge locations and fetching from S3 when needed. The video also highlights key lessons learned, including the value of first principles thinking, infrastructure as code with Terraform, and understanding how AWS services work together as a system."}