AWS News Blog
HAQM Q brings generative AI-powered assistance to IT pros and developers (preview)
|
Update April 30, 2024: HAQM Q Developer now generally available!
Today, we are announcing the preview of HAQM Q, a new type of generative artificial intelligence (AI) powered assistant that is specifically for work and can be tailored to a customer’s business.
HAQM Q brings a set of capabilities to support developers and IT professionals. Now you can use HAQM Q to get started building applications on AWS, research best practices, resolve errors, and get assistance in coding new features for your applications. For example, HAQM Q Code Transformation can perform Java application upgrades now, from version 8 and 11 to version 17.
HAQM Q is available in multiple areas of AWS to provide quick access to answers and ideas wherever you work. Here’s a quick look at HAQM Q, including in integrated development environment (IDE):
Building applications together with HAQM Q
Application development is a journey. It involves a continuous cycle of researching, developing, deploying, optimizing, and maintaining. At each stage, there are many questions—from figuring out the right AWS services to use, to troubleshooting issues in the application code.
Trained on 17 years of AWS knowledge and best practices, HAQM Q is designed to help you at each stage of development with a new experience for building applications on AWS. With HAQM Q, you minimize the time and effort you need to gain the knowledge required to answer AWS questions, explore new AWS capabilities, learn unfamiliar technologies, and architect solutions that fuel innovation.
Let us show you some capabilities of HAQM Q.
1. Conversational Q&A capability
You can interact with the HAQM Q conversational Q&A capability to get started, learn new things, research best practices, and iterate on how to build applications on AWS without needing to shift focus away from the AWS console.
To start using this feature, you can select the HAQM Q icon on the right-hand side of the AWS Management Console.
For example, you can ask, “What are AWS serverless services to build serverless APIs?” HAQM Q provides concise explanations along with references you can use to follow up on your questions and validate the guidance. You can also use HAQM Q to follow up on and iterate your questions. HAQM Q will show more deep-dive answers for you with references.
There are times when we have questions for a use case with fairly specific requirements. With HAQM Q, you can elaborate on your use cases in more detail to provide context.
For example, you can ask HAQM Q, “I’m planning to create serverless APIs with 100k requests/day. Each request needs to lookup into the database. What are the best services for this workload?” HAQM Q responds with a list of AWS services you can use and tries to limit the answer results to those that are accurately referenceable and verified with best practices.
Here is some additional information that you might want to note:
- HAQM Q conversational Q&A capability is currently in preview in all commercial AWS Regions.
- This capability is integrated into the AWS Management Console, AWS Console Mobile Application, AWS Documentation, AWS websites, and Slack and Teams through AWS Chatbot, making it more convenient and easier to find what you need.
2. Optimize HAQM EC2 instance selection
Choosing the right HAQM Elastic Compute Cloud (HAQM EC2) instance type for your workload can be challenging with all the options available. HAQM Q aims to make this easier by providing personalized recommendations.
To use this feature, you can ask HAQM Q, “Which instance families should I use to deploy a Web App Server for hosting an application?” This feature is also available when you choose to launch an instance in the HAQM EC2 console. In Instance type, you can select Get advice on instance type selection. This will show a dialog to define your requirements.
Your requirements are automatically translated into a prompt on the HAQM Q chat panel. HAQM Q returns with a list of suggestions of EC2 instances that are suitable for your use cases. This capability helps you pick the right instance type and settings so your workloads will run smoothly and more cost-efficiently.
This capability to provide EC2 instance type recommendations based on your use case is available in preview in all commercial AWS Regions.
3. Troubleshoot and solve errors directly in the console
HAQM Q can also help you to solve errors for various AWS services directly in the console. With HAQM Q proposed solutions, you can avoid slow manual log checks or research.
Let’s say that you have an AWS Lambda function that tries to interact with an HAQM DynamoDB table. But, for an unknown reason (yet), it fails to run. Now, with HAQM Q, you can troubleshoot and resolve this issue faster by selecting Troubleshoot with HAQM Q.
HAQM Q provides concise analysis of the error which helps you to understand the root cause of the problem and the proposed resolution. With this information, you can follow the steps described by HAQM Q to fix the issue.
In just a few minutes, you will have the solution to solve your issues, saving significant time without disrupting your development workflow. The HAQM Q capability to help you troubleshoot errors in the console is available in preview in the US West (Oregon) for HAQM Elastic Compute Cloud (HAQM EC2), HAQM Simple Storage Service (HAQM S3), HAQM ECS, and AWS Lambda.
4. Network troubleshooting assistance
You can also ask HAQM Q to assist you in troubleshooting network connectivity issues caused by network misconfiguration in your current AWS account. For this capability, HAQM Q works with HAQM VPC Reachability Analyzer to check your connections and inspect your network configuration to identify potential issues.
This makes it easy to diagnose and resolve AWS networking problems, such as “Why can’t I SSH to my EC2 instance?” or “Why can’t I reach my web server from the Internet?” which you can ask HAQM Q.
Then, on the response text, you can select preview experience here, which will provide explanations to help you to troubleshoot network connectivity-related issues.
Here are a few things you need to know:
- This capability is currently available in preview in the US East (N. Virginia).
- To learn more about the feature and sample questions, see Getting started with HAQM Q network troubleshooting in the AWS Documentation.
5. Integration and conversational capabilities within your IDEs
As we mentioned, HAQM Q is also available in supported IDEs. This allows you to ask questions and get help within your IDE by chatting with HAQM Q or invoking actions by typing /
in the chat box.
To get started, you need to install or update the latest AWS Toolkit and sign in to HAQM CodeWhisperer. Once you’re signed in to HAQM CodeWhisperer, it will automatically activate the HAQM Q conversational capability in the IDE. With HAQM Q enabled, you can now start chatting to get coding assistance.
You can ask HAQM Q to describe your source code file.
From here, you can improve your application, for example, by integrating it with HAQM DynamoDB. You can ask HAQM Q, “Generate code to save data into DynamoDB table called save_data() accepting data parameter and return boolean status if the operation successfully runs.”
Once you’ve reviewed the generated code, you can do a manual copy and paste into the editor. You can also select Insert at cursor to place the generated code into the source code directly.
This feature makes it really easy to help you focus on building applications because you don’t have to leave your IDE to get answers and context-specific coding guidance. You can try the preview of this feature in Visual Studio Code and JetBrains IDEs.
6. Feature development capability
Another exciting feature that HAQM Q provides is guiding you interactively from idea to building new features within your IDE and HAQM CodeCatalyst. You can go from a natural language prompt to application features in minutes, with interactive step-by-step instructions and best practices, right from your IDE. With a prompt, HAQM Q will attempt to understand your application structure and break down your prompt into logical, atomic implementation steps.
To use this capability, you can start by invoking an action command /dev
in HAQM Q and describe the task you need HAQM Q to process.
Then, from here, you can review, collaborate and guide HAQM Q in the chat for specific areas that need to be implemented.
Additional capabilities to help you ship features faster with complete pull requests are available if you’re using HAQM CodeCatalyst. In HAQM CodeCatalyst, you can assign a new or an existing issue to HAQM Q, and it will process an end-to-end development workflow for you. HAQM Q will review the existing code, propose a solution approach, seek feedback from you on the approach, generate merge-ready code, and publish a pull request for review. All you need to do after is to review the proposed solutions from HAQM Q.
The following screenshots show a pull request created by HAQM Q in HAQM CodeCatalyst.
Here are a couple of things that you should know:
- HAQM Q feature development capability is currently in preview in Visual Studio Code and HAQM CodeCatalyst
- To use this capability in IDE, you need to have the HAQM CodeWhisperer Professional tier. Learn more on the HAQM CodeWhisperer pricing page.
- To learn more about this feature, read: Improve developer productivity with generative-AI powered HAQM Q in HAQM CodeCatalyst (preview)
7. Upgrade applications with HAQM Q Code Transformation
With HAQM Q, you can now upgrade an entire application within a few hours by starting a guided code transformation. This capability, called HAQM Q Code Transformation, simplifies maintaining, migrating, and upgrading your existing applications.
To start, navigate to the CodeWhisperer section and then select Transform. HAQM Q Code Transformation automatically analyzes your existing codebase, generates a transformation plan, and completes the key transformation tasks suggested by the plan.
Some additional information about this feature:
- HAQM Q Code Transformation is available in preview today in the AWS Toolkit for IntelliJ IDEA and the AWS Toolkit for Visual Studio Code.
- To use this capability, you need to have the HAQM CodeWhisperer Professional tier during the preview.
- During preview, you can can upgrade Java 8 and 11 applications to version 17, a Java Long-Term Support (LTS) release.
- To learn more about this feature, read: Upgrade your Java applications with HAQM Q Code Transformation (preview)
Get started with HAQM Q today
With HAQM Q, you have an AI expert by your side to answer questions, write code faster, troubleshoot issues, optimize workloads, and even help you code new features. These capabilities simplify every phase of building applications on AWS.
HAQM Q lets you engage with AWS Support agents directly from the Q interface if additional assistance is required, eliminating any dead ends in the customer’s self-service experience. The integration with AWS Support is available in the console and will honor the entitlements of your AWS Support plan.
Learn more
Read more about HAQM Q
- Introducing HAQM Q, a new generative AI-powered assistant (preview)
- Improve developer productivity with generative-AI powered HAQM Q in HAQM CodeCatalyst (preview)
- Upgrade your Java applications with HAQM Q Code Transformation (preview)
- New generative AI features in HAQM Connect, including HAQM Q, facilitate improved contact center service
- New HAQM Q in QuickSight uses generative AI assistance for quicker, easier data insights (preview)
On November 29, 2023, the screenshot that showed how to get recommendations for HAQM EC2 instances in HAQM Q was updated to reflect latest improvements in the product.