I tried GitHub Copilot for CloudFormation Templates

I tried GitHub Copilot for CloudFormation Templates

Clock Icon2021.12.17

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

Before we start, check out my previous blog on GitHub Copilot

Working on my first project made me realise how hard and time-consuming it is to search for parameters for the CloudFormation template on documentation and other sources.

And I am sure that even after years of working on multiple projects, there will always be something new for which one needs to do a lot of research and exploration in order to get the correct term. Well, not anymore, we have Copilot to help us by eliminating the need to search on platforms such as Stack Overflow, GitHub Repositories, and so on.

I tried GitHub Copilot for Infrastructure as Code(IaC), and it did what it's supposed to do, it eliminated half of my work in just a snap.

Copilot for Infrastructure as Code(IaC)

GitHub Copilot is designed for folks who work with JSON templates. Sorry, YAML folks; Copilot will not be able to accompany you on this voyage; maybe, YAML support might be added soon, but you are on your own right now.

So how is working with Copilot? Let's begin with a quick demonstration of Copilot suggesting the complete parameter block using just one phrase.

Yes, this is the strength of Copilot; it can not only recommend a block of code, but it can also suggest many variations of the same block, which we shall look at momentarily.

Multiple Versions of a Block

Copilot not only proposes a block of code but also numerous variants of it; the more it learns, the more it suggests, so we don't have to rely on just one proposal; instead, we may choose from multiple blocks based on our preferences.

With just a click of a button, you can change the suggested block of code and select among various different implementations, it's always good to have multiple options as it gives us flexibility and the privilege to select.

Auto Complete

GitHub Copilot can not only recommend a block of code, but it can also work as an auto-complete of a line of code, which is very useful when modifying a block of code that