AWS has released a new solution designed to make it easier to get started with infrastructure automation.
AWS Console-to-Code allows users to record the console actions they are performing and have those actions converted to code for later use. Code can be generated in several different infrastructure-as-code (IaC) formats, like an AWS CloudFormation template (YAML or JSON) or AWS Cloud Development Kit (AWS CDK) (TypeScript, Python, or Java).
When this was first introduced as a preview last year, AWS said that AWS Console-to-Code “makes it simple, fast, and cost-effective to move from prototyping in the AWS Management Console to deploying production code for your workloads. Customers can now generate code for their console actions in their preferred format. The code helps customers get started and bootstrap their automation pipelines for their workloads tasks.”
It is now generally available in all commercial regions, and a number of new capabilities have been added to the GA release as well.
For instance, it now supports use in the following consoles: Amazon EC2, Amazon Relational Database Service (RDS), and Amazon Virtual Private Cloud (Amazon VPC). Amazon has also simplified the user experience so that customers can more easily manage prototyping, recording, and code generation workflows.
In addition, the EC2 instances and Auto Scaling groups launch wizards have been updated to allow code to be generated for those resources without actually creating the resources.
And finally, Amazon Q is now used for code generation in AWS CDK and CloudFormation.
According to Amazon, customers will get up to 25 free code generations per month for CloudFormation and AWS CDK. After that, customers will need an Amazon Q Developer subscription to generate more.