<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MichaelZ</title>
    <description>The latest articles on DEV Community by MichaelZ (@michael-hero).</description>
    <link>https://dev.to/michael-hero</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3423327%2Fad0e7a1b-fbba-4866-841f-e0c213ba7d4d.png</url>
      <title>DEV Community: MichaelZ</title>
      <link>https://dev.to/michael-hero</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/michael-hero"/>
    <language>en</language>
    <item>
      <title>Deploying Spring Boot to AWS Lambda with Terraform — Public Demo Project</title>
      <dc:creator>MichaelZ</dc:creator>
      <pubDate>Sun, 24 Aug 2025 13:56:40 +0000</pubDate>
      <link>https://dev.to/michael-hero/deploying-spring-boot-to-aws-lambda-with-terraform-public-demo-project-229c</link>
      <guid>https://dev.to/michael-hero/deploying-spring-boot-to-aws-lambda-with-terraform-public-demo-project-229c</guid>
      <description>&lt;p&gt;Hey folks!&lt;/p&gt;

&lt;p&gt;I wanted to share a small project I’ve open-sourced recently to help backend developers (like myself) get started with deploying &lt;strong&gt;Spring Boot apps to AWS Lambda&lt;/strong&gt; using &lt;strong&gt;Terraform&lt;/strong&gt; — without wasting days on setup.&lt;/p&gt;

&lt;p&gt;It’s based on a &lt;strong&gt;public GitHub demo&lt;/strong&gt; and designed to show how Java, Lambda, and API Gateway can work together in a clean, reproducible way. Literally it deploys in &lt;strong&gt;under 3 mins&lt;/strong&gt;!&lt;/p&gt;




&lt;h2&gt;
  
  
  What You'll Learn
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;How to write a minimal Spring Boot app for serverless&lt;/li&gt;
&lt;li&gt;How to define AWS infrastructure using Terraform (Lambda + API Gateway)&lt;/li&gt;
&lt;li&gt;How to deploy everything with a single script&lt;/li&gt;
&lt;li&gt;How to test endpoint on AWS&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What's Inside the Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Java 17 + Spring Boot starter project&lt;/li&gt;
&lt;li&gt;Lambda-compatible handler&lt;/li&gt;
&lt;li&gt;Infrastructure-as-Code with Terraform&lt;/li&gt;
&lt;li&gt;API Gateway config&lt;/li&gt;
&lt;li&gt;Bash deploy script&lt;/li&gt;
&lt;li&gt;Lightweight README + setup guide&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;GitHub repo:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/ZPetrovich/springboot-aws-template-demo" rel="noopener noreferrer"&gt;https://github.com/ZPetrovich/springboot-aws-template-demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1-minute walkthrough video:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=agKj_un5PZg" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=agKj_un5PZg&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  How to Try It Yourself
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/ZPetrovich/springboot-aws-template-demo
&lt;span class="nb"&gt;cd &lt;/span&gt;springboot-aws-template-demo
&lt;span class="nb"&gt;chmod&lt;/span&gt; +x deploy.sh
./deploy.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Java 17+&lt;/li&gt;
&lt;li&gt;AWS CLI + credentials&lt;/li&gt;
&lt;li&gt;Terraform 1.x+&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once deployed, test the endpoint in your Browser:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://&amp;lt;YOUR_AWS_GATEWAY_ID&amp;gt;.execute-api.&amp;lt;YOUR_AWS_REGION&amp;gt;.amazonaws.com/prod/api/items/YOUR_KEYWORD&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The goal is to reduce the DevOps burden for solo developers, learners, and backend engineers who want to experiment with Lambda.&lt;/p&gt;

&lt;p&gt;If this project helps you, or if you see anything that could be improved — I’d love to hear from you.&lt;/p&gt;

&lt;p&gt;I'm happy to expand it further (add CI/CD, DynamoDB, multi-environment support, etc.) if there's interest.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2xwic1scj8w9hqam8j29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2xwic1scj8w9hqam8j29.png" alt="API Gateway" width="800" height="424"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>aws</category>
      <category>terraform</category>
      <category>springboot</category>
    </item>
  </channel>
</rss>
