r/github • • Jul 19 '21

After getting invited to Github Copilot

Post image
165 Upvotes

15 comments sorted by

View all comments

3

u/Ashtar_Squirrel Jul 21 '21

It’s when it started writing the terraform code and gitlab-ci files that my co-workers started to panic. They were, yeah dev is anyway going to go away, but it can’t do ops… short sighted human water and meat bags ;)

So it can write your code, your ci, your infrastructure…

1

u/wrtbwtrfasdf Jul 21 '21

Interesting that it would know GitLab-ci, I would've thought they'd only have trained it on Github repos. Hmm... wonder if it can set up my Kubernetes cluster for me.

1

u/Ashtar_Squirrel Jul 22 '21

I found it works best when it has some context in the file. Extending existing terraform code file by adding a comment saying “#create an s3 bucket with encryption enabled” yielded a mostly references to an s3 existing bucket with a couple of correct resource declarations. You can see it doesn’t “understand” that resource is a creation and is just parroting that style of declarations. But still impressive.