AWS has announced the general availability of AWS Console-to-Code, a service that makes it easy to convert AWS console actions into reusable code. It currently supports Amazon EC2, RDS, and VPC.
With a few clicks, you can record your actions and workflows in the console, such as launching an Amazon Elastic Compute Cloud (Amazon EC2) instance, and review the AWS Command Line Interface (AWS CLI) commands for your console actions. Amazon Q can then generate code for you using the infrastructure-as-code (IaC) format of your choice, including AWS CloudFormation template (YAML or JSON) and AWS Cloud Development Kit (AWS CDK) (TypeScript, Python, or Java).
This can be used as a starting point for infrastructure automation and further customized for your production workloads, included in pipelines, and more.
Some of the new features in the GA release include:
* **Support for more services:** During preview, the only supported service was Amazon EC2. At GA, AWS Console-to-Code has extended support to include Amazon Relational Database Service (RDS) and Amazon Virtual Private Cloud (Amazon VPC).
* **Simplified experience:** The new user experience makes it easier for customers to manage the prototyping, recording, and code generation workflows.
* **Preview code:** The launch wizards for EC2 instances and Auto Scaling groups have been updated to allow customers to generate code for these resources without actually creating them.
* **Advanced code generation:** AWS CDK and CloudFormation code generation is powered by Amazon Q machine learning models.
Anyone can use AWS Console-to-Code to generate AWS CLI commands for their infrastructure workflows. The code generation feature for AWS CDK and CloudFormation formats has a free quota of 25 generations per month, after which you will need an Amazon Q Developer subscription.
It’s recommended that you test and verify the generated IaC code before deployment. At GA, AWS Console-to-Code only records actions in Amazon EC2, Amazon VPC, and Amazon RDS consoles.
AWS Console-to-Code is available in all commercial Regions. You can learn more about it in the Amazon EC2 documentation.