IDE Extension for AWS Application Composer
Tags: aws, reinvent, ai, iac
Published: 2023-12-19 10:45:03

### In re:Invent 2023, AWS announced IDE extension for AWS Application Composer. Let’s explore!


About a year ago, [OpenAI unveiled ChatGPT](https://openai.com/blog/chatgpt), a Large Language Model(LLM) that drove a great attention, and the AI hype got rapidly integrated into our daily lives. In this wave of innovation, AWS — as a key player pioneer in tech advancements — has been leveraging AI in numerous ways, notably with their recent announcements in [AWS re:Invent 2023](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwi_-9_FhZuDAxU7gf0HHSlGC2oQFnoECB8QAQ&url=https%3A%2F%2Freinvent.awsevents.com%2F&usg=AOvVaw2nNrcy7-_rOe6Ypfvyn3lg&opi=89978449), like [AWS Q](https://aws.amazon.com/q/). As a Cloud Engineer, Infrastructure as Code (IaC) remains a cornerstone of my daily operations, crucial for maintaining sustainable IT infrastructure. However, amidst the buzz, an announcement seems to me that it has slipped under the radar of the community.

The **AWS Application Composer and its IDE Extension**, fortified with AI enhancements. While Terraform dominates my workload, I can see the potential significance of this release, especially for those relying heavily on CloudFormation. So, shall we?

### What is AWS Application Composer?

[In AWS re:Invent 2022](https://aws.amazon.com/about-aws/whats-new/2022/12/aws-application-composer-preview/) event, AWS announced that service and it’s available since March 2023. AWS Application Composer is a powerful tool that makes developing and deploying apps on the AWS cloud easier. It serves as a visual builder that lets developers quickly and effectively design, build, and coordinate different AWS services to create applications.

This tool makes it easier to integrate several AWS services into a coherent application architecture by offering a drag and drop interface. Using pre-built components, templates, and workflows, developers can shorten the time it takes to construct an application.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2ZkzqrsR4cUdqxLf5bADparyNwk.png%3FimgSize%3D3456x1758&w=1920&q=75)

Without requiring complex manual configuration, customers can use Application Composer to visually sketch out the architecture of their apps, integrating different AWS services including Lambda functions, API Gateways, databases, and more. However, it’s currently available on the AWS website. AWS has elevated its capabilities with an IDE extension. While it’s only available with Visual Studio Code at the moment, I expect broader IDE support in the future. Let’s take a look at it.

## What is IDE extension for AWS Application Composer?

Now, AWS Application Composer seamlessly integrates into your IDE, allowing you to visually construct modern applications and refine your IaC(infrastructure as code) templates using [AWS CodeWhisperer](https://aws.amazon.com/codewhisperer/) (CodeWhisperer is a service like GitHub CoPilot, an AI-powered productivity tool for the IDE and command line that generates **code**suggestions based on comments and existing **code.** ).

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl00mi0ZBY4BP6yty8mUq8OtHb.png%3FimgSize%3D1500x793&w=1920&q=75)

[[How it looks like on IDE]](https://aws.amazon.com/blogs/aws/ide-extension-for-aws-application-composer-enhances-visual-modern-applications-development-with-ai-generated-iac/)

This IDE extension mirrors the **familiar drag-and-drop experience** found in the console, empowering you to swiftly prototype ideas and concentrate on your application code. Not only does it bring Application Composer to your IDE, but it also enables generative AI-powered code suggestions(CodeWhisperer) within the CloudFormation template, all while visualizing the application architecture in a split view. With synchronized visualization and CloudFormation template editing in the IDE, you can refine designs without switching between consoles, reducing manual coding and enhancing productivity. And it is available at no charge. Awesome, isn’t it?
>  [*With Application Composer running in your IDE, you can also use the various tools available in your IDE. For example, you can seamlessly integrate IaC templates generated real-time by Application Composer with AWS Serverless Application Model (AWS SAM) to manage and deploy your serverless applications.](https://aws.amazon.com/blogs/aws/ide-extension-for-aws-application-composer-enhances-visual-modern-applications-development-with-ai-generated-iac/)*

Beside from the use cases mentioned in the announcement of the [IDE extension for AWS Application Composer](https://aws.amazon.com/blogs/aws/ide-extension-for-aws-application-composer-enhances-visual-modern-applications-development-with-ai-generated-iac/), I believe **of** that this will make it far easier to quickly validate what resources will be created by a CloudFormation template. This will be especially useful in CDK stacks where it will work as a quick way to verify that all the right components of an architecture are present without digging through the actual generated template.

It also integrates directly with StepFunctions workflow studio on Visual Studio Code.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl075wOGWZQKhv6o9bj7qO3Fnv.jpeg%3FimgSize%3D1200x750&w=1920&q=75)

Before proceeding, let’s install it together.

### How to Install AWS Application Composer in Visual Studio Code?

We’ll install the latest [AWS Toolkit for Visual Studio Code](https://aws.amazon.com/visualstudiocode/?trk=ad553193-613c-4a84-acde-bf4fa6c173a5&sc_channel=el) plugin. Don’t mind and go ahead if you already have the AWS Toolkit plugin installed.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl0AOHXNlU6lKrqDjWEDm8B73f.png%3FimgSize%3D3456x2234&w=1920&q=75)

In Visual Studio Code Extensions Marketplace, you can search for AWS Toolkit and click the blue install button. Or, just [click here](https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.aws-toolkit-vscode&refid=ad553193-613c-4a84-acde-bf4fa6c173a5).

Now, on left hand side you can see on your Visual Studio Code that AWS and Q sections have been added. But as you can see, now we need to login oeither with AWS Builder ID or SSO(single sign-on). And that’s it. You have it.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl0DzeKHG5nt5YnrIpN5abGM9E.png%3FimgSize%3D3456x2234&w=1920&q=75)

In order to start using Application Composer, no need to authenticate into your AWS account. With Application Composer available on your IDE, you can open your existing AWS CloudFormation or AWS SAM templates.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl0JJN9qvzjPChd0zcHokVildJ.png%3FimgSize%3D1500x622&w=1920&q=75)

Or simply you can create a new empty file, and right-click on the file, then select “*Open with Application Composer*” to start developing with drag and drop interface of Application Composer. In my case, I created a “try.yaml” file. You can see in the picture below.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl0YMKduCn2x8L4VMSynIPaeTO.png%3FimgSize%3D3456x2234&w=1920&q=75)

Voila! You have it.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl19k6yUNtGleBN4rwTLWuj9ZY.png%3FimgSize%3D3456x2234&w=1920&q=75)

As you can see above, it provided me with a blank canvas which I can work on it. Here I have both code and visual editors at the same time. Any changes that I make on the canvas will also be reflected in real time on my IaC template.

As you can see below, my “try.yaml” file is empty for now.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl0gQB6tdPpNf5cztccCqv99Y3.png%3FimgSize%3D3456x2234&w=1920&q=75)

For instance, I just drag and drop on canvas an API Gateway and a Lambda function. Then I connected them simply with drag and drop functionality again.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl1Ix4wQeKCvrlpO8KKhoozVho.png%3FimgSize%3D3456x2234&w=1920&q=75)

Do you remember my empty “try.yaml” file? Now let’s go back and look at my YAML file. You can see below in the image that it’s not empty anymore. Generative AI already wrote the IaC for us.

![](https://community.aws/_next/image?url=https%3A%2F%2Fassets.community.aws%2Fa%2F2Zl0lltILcgJe9K4xQFY0AgBaEP.png%3FimgSize%3D3456x2234&w=1920&q=75)

With available IaC templates in your local, it’ll be easier for you to manage the applications with AWS SAM CLI. You can easily create CI/CD with sam pipeline or deploy your stack with sam deploy.

One of the features which will accelerate your dev workflow is the built-in Sync feature that easily integrates with AWS SAM command sam sync. This feature syncs your local app changes to your AWS account, that’s helpful for you to do test and validation before you deploy your app into the prod.

With the new development of IaC templates with generative AI capabilities, you can instantly launch over 1000 resources in CloudFormation with generative AI code suggestions. This simplifies the integration of standard IaC resources and allows you to easily scale your architecture.

For example, suppose you have configured Amazon MQ, a standard IaC resource, and you want to use Application Composer to adjust some settings in your AWS CloudFormation resource. Adjust the values ​​in the Resource Configuration section and select Generate. Application Composer provides code suggestions that seamlessly integrate with your IaC templates. This feature eliminates the need for context switching and streamlines the development process. Build modern applications with AWS Application Composer Canvas while leveraging tools like Amazon CodeWhisperer and AWS SAM to accelerate your development workflow.[[*]](https://aws.amazon.com/blogs/aws/ide-extension-for-aws-application-composer-enhances-visual-modern-applications-development-with-ai-generated-iac/)

## Some Possible Use Cases

* Rapid Application Prototyping: In today’s Agile IT World, AWS Application Composer’s visual canvas within the IDE may allow for quick prototyping of application ideas. Developers can easily design, modify, and visualize architectures without relying on manual coding. This may accelerate the initial development phase, and enabling faster experimentation and validation of concepts.

* Infrastructure as Code (IaC) Development: For CloudFormation users, the IDE extension powered by Gen-AI offers a game changing approach to IaC development. It generates AI code suggestions, which reducing the time spent old style coding CloudFormation templates. The split view feature combines visualization and template editing, streamlining the iteration process and booming productivity.

* Enhanced Collaboration and Iteration: By eliminating the need for constant context switching between consoles, teams may collaboratively work on projects more efficiently. The synchronization of Application Composer’s visualization and CloudFormation template editing in the IDE helps easy collaboration, allowing for quicker iterations and better development cycles.

* Code Efficiency and Resource Inclusion: The generative AI capabilities empower developers to easily incorporate CloudFormation’s extensive library of resources. This ensures effective coding by providing suggestions that align with specific resource configurations, enabling easy integration of standard IaC resources into architectural designs.

* Streamlined Application Development Workflow: AWS Application Composer, in conjunction with Amazon CodeWhisperer and AWS SAM, facilitates a comprehensive and efficient application development workflow. Developers can harness visual design, AI-driven suggestions, and associated AWS tools to streamline the entire application development lifecycle.

If you have any questions, please don’t hesitate to contact me.

### Resources

* [https://aws.amazon.com/blogs/aws/ide-extension-for-aws-application-composer-enhances-visual-modern-applications-development-with-ai-generated-iac/](https://aws.amazon.com/blogs/aws/ide-extension-for-aws-application-composer-enhances-visual-modern-applications-development-with-ai-generated-iac/)

* [https://aws.amazon.com/about-aws/whats-new/2023/11/ide-extension-aws-application-composer/](https://aws.amazon.com/about-aws/whats-new/2023/11/ide-extension-aws-application-composer/)