StackGen Emerges from appCD to Disrupt IaC Learn More

How to Demo Infrastructure from Code for Lambda Based Applications

July 19, 2024 Danielle Cook

Just recently, Gartner included Infrastructure from Code on the Hype Cycle for Platform Engineering, 2024. A new entrant to the Hype Cycle, Infrastructure from Code offers organizations a way to deploy applications to the cloud more easily with Infrastructure as Code (IaC) automation.  

Infrastructure from Code puts the application at the center of infrastructure provisioning. By analyzing what has already been coded in the application, it can auto-generate IaC developers require with the security, compliance and well-architected frameworks DevOps teams require. Development teams’ velocity increases while security and reliability are enforced. 

So, want to see how it works? In this blog, we’ll give you an overview of how to demo StackGen, a provider of Infrastructure from Code. In just a few steps and less than five minutes, you can get a real feel for how StackGen can be your IaC cheatsheet!

Watch Cesar Rodriguez’s five minute demo of Infrastructure from Code for Lambda Based Applications

Step 1: Login to StackGen

You can login in to StackGen by visiting cloud.stackgen.com with your GitHub, Gitlab, Google or Bitbucket account. 

appCD login screen

Step 2: Get to the demo repo

Once in, you’ll be welcomed to the StackGen developer edition. The developer edition is a SaaS-based version where you can connect your repos, view your deployment architecture, select AWS policies and compliance standards, and generate your IaC. And it is free to use!

appCD Welcome Screen

We ask you three short questions. If you don’t want to answer, you can easily skip. 

Next, you’ll have several options to generate your first IaC. You can do so from your own repositories or you can select Generate from StackGen Demo Repositories. 

Demo screen

We provide four different demo repositories for you to try. For this blog, we’ll select retroboard (RetroBoard is a free tool for running team retrospectives) and hit proceed: 

Select retroboard demo screen

Step 3: Make choices 

Next you’ll be presented with a view where you can configure selected repos, choose branches, languages and container images (if any). For this demo, the language is Python, we are using the main branch and have auto-generated additional information. When reviewed, hit proceed. 

Select cloud screen 

(Note: screenshot has more information available in the demo)

In this step, you’ll select what cloud provider you want to use AWS EKS, ECS or Lambda or Azure AKS. Your Target IaC will autopopulate to include Terraform and/or Helm. For this, we will select Lambda. On the right, you’ll see a summary of your repos, cloud services, target IaC and all the policies that are recommended. 

 

 

You can click into the recommended policies for a list of what is selected. In the demo, you can turn on or off selected policies. If using within an organization, these can be selected by the DevOps, platform engineering or security teams so that developers do not have to consider what is required. 

 

Policy selection screen

 

Next you’ll name your appStack and can add an optional description. Once done, hit create. 

 

name your appstack screen

 

Step 4: Static-Code Analysis, Topology View and IaC Generation

StackGen performs a static-code analysis of your application. Analysis will take a few moments.

appCD analyzing code screen

Upon completion, a topology view is created of the deployment architecture.

 

Here you can review any errors that might appear and complete the required information. 

topology view 

Users can review if required the policies applied by clicking to the policies tab.

Policy review screen

By clicking to the IaC tab, you can view your IaC before exporting in the event you’d like to review. 

Terraform IaC Review screen

Once the required fields are fixed and no errors appear, users can export IaC. 

Topology no violations screen

 

StackGen makes IaC easy with Infrastructure from Code. Within this short demo, you can see how to easily generate IaC without having to know every configuration, component or policy required. 

If you want more information on how StackGen works, get the StackGen solution overview

Share This: