AWS — Console-To-Code Feature — Is it Useful?

Rafael Medeiros
3 min readNov 5, 2024

--

Photo by Gabriel Heinzer on Unsplash

On October 10, 2024, AWS announced the general availability of console to code generate code:

It records your console actions, including settings and parameters, and uses generative AI to suggest infrastructure-as-code (IaC) that matches your actions.

You may wonder why is this a game changer for the AWS community, let me show in practice how easy it is to use it:

You go there to create your EC2 instance:

When you are happy with the configuration, instead of launching the instance, you can preview the code that will allow you will to create exact replicas of this instance, script this action in a pipeline or even tweak small parameters:

The resources that will be created are then shown as a code for you:

You can even ask Amazon Q (AWS AI) to generate a cloudformation template out of that code:

Recording Actions

With that tab, you can also record your actions within that tab. Once you stop the recording, all the actions will be recorded and you can copy it as a cli command or generate another cloud formation template from a single action or all of them:

However, at the time of this writing, this feature is only available for the following resources:

We hope to see AWS expanding this useful feature for other services soon, if not all.

Are you using this feature already? What do you think so far? Is it really helpful, or are you waiting for more resources to come? Let us know in the comments section!

Follow me on Linkedin

Clap if you liked this content!

--

--

Rafael Medeiros
Rafael Medeiros

Written by Rafael Medeiros

DevOps Engineer | CNCF Kubestronaut | 3x Azure | Terraform Fanatic | Another IT Professional willing to help the community

No responses yet