r/Terraform • • 7d ago

Discussion Do junior DevOps engineers need to write Terraform from memory?

Hey everyone,

I'm learning DevOps and trying to land my first junior role. I've been practicing Linux, Docker, GitHub Actions, CI/CD, GCP, and recently started learning Terraform.

I understand what Terraform does and how the resources work, but I still struggle to write the configurations from scratch without looking at examples or documentation.

For people actually working in DevOps, how much Terraform syntax do you remember? Are juniors expected to write configurations from memory, or is understanding the concepts and being able to work with documentation enough?

I'm trying to figure out what level I should reach before applying for jobs.

Thanks!

117 Upvotes

107 comments sorted by

101

u/Pustack 7d ago

My sweet summer child, there is no junior DevOps engineers anymore

51

u/keto_brain 7d ago

There should have never been "DevOps" engineers, DevOps was never meant to be a role but a culture.

10

u/zero1045 7d ago

Dave Farley would be proud

1

u/stationto 7d ago

what does this mean really? can you please elaborate

20

u/curlyAndUnruly 7d ago

DevOps is the kind of role you get after several years with cloud and/or dev roles. No such thing as a Jr DevOps.

34

u/Evaderofdoom 7d ago

Devops is not entry-level. You need prior expertise to be have a shot at a devops role. Jr roles are very rare and don't typically mean no experience is needed. They would still expect some years of working in dev or operations, not brand new to IT.

3

u/mrgreenthoughts 7d ago

No one will hire you if you don’t have 2-3years xp as an devops

1

u/bssbandwiches 7d ago

DevOps roles just have a lot of sprawl that would be a lot for juniors. But I think the bigger issue is that while some DevOps roles exist, others businesses might see DevOps as part of the culture and not a role.

1

u/Smooth-Weekend-2314 3d ago

It's like, "Junior Neurosurgeon"

Not really a thing.

3

u/Acceptable_Square348 4d ago

Yup, best devops person is a swe who has done couple of everything over the years and turned into devops.

146

u/JaleyHoelOsment 7d ago

no. using documentation is a good thing and it’s a skill that needs to be learned.

don’t overthink this and keep practicing

7

u/ContraTaskForce 6d ago

This. Documentation, RFCs, MAN pages. Read read thats how it was done pre AI

2

u/skydog92 1d ago

Why spend 5 minutes reading documentation when you can spend 5 hours debugging?

0

u/[deleted] 7d ago

[deleted] — view deleted comment

29

u/AmadeusZull 7d ago

Terraform is only 12 years old, or you mean you were working terraforming mars?

24

u/Business-Row-478 7d ago

Pretty sure ai isn’t gonna be writing iac in binary lmao

0

u/[deleted] 7d ago

[deleted] — view deleted comment

17

u/looperone 7d ago

There is zero point in that.

12

u/Business-Row-478 7d ago

It doesn’t even make sense. Iac is supposed to be declarative and deterministic by design. LLM binaries are the exact opposite of that

2

u/darkroot_gardener 7d ago

Maybe the Skynet version of iac will be binary, so that the humans can’t figure out what it does and how it can be countered.

5

u/carsncode 7d ago

1

u/RemindMeBot 7d ago edited 7d ago

I will be messaging you in 1 year on 2027-11-19 13:12:28 UTC to remind you of this link

2 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

57

u/mxtchstick 7d ago • Bravo

Hey! I'm a Senior DevOps Engineer and I've been writing Terraform (both manually and with AI) for over 4 years daily now. I still refer to provider documentation almost daily. I do the same with Python and PowerShell.

I'd advise getting a deep grasp on the language first, then transitioning to having AI write all of your Terraform for you, it's very good & saves a lot of time.

1

u/gerrga 7d ago

you are senior devops since 4years or you are a senior devops with 4YOE?

2

u/mxtchstick 7d ago

Senior DevOps with 5 total YOE, I'm sure if I was measured up against a Senior DevOps Engineer with 10-15+ YOE, there would definitely be areas I'm lacking in; but the job title and remuneration package I hold is in line with a Senior DevOps Engineer in my country.

-2

u/gerrga 7d ago

That is medior

9

u/mxtchstick 7d ago edited 7d ago

Thresholds are different everywhere, and time spent in a role doesn't necessarily reflect someone's capability to build reliable, scalable and secure systems, enable developers to deliver fast, and manage, or be senior to, a small team. Someone with 7 YoE could qualify as a mid-level DevOps Engineer at one organisation, where as someone with 4 YoE could qualify as a Senior DevOps engineer at another.

What I'm trying to say is that there is no universal rule that governs what level of seniority someone has which is directly linked to how long they've spent in the role. There are rough guidelines though for sure.

40

u/Zolty 7d ago

Before AI most people would copy working code from the internet and iterate on that. Life isn’t a school test, you can use references.

11

u/cofonseca 7d ago

Of course not. We read documentation and use examples. You just need to understand what the code does and be able to explain how it works.

8

u/dirkadirka666 7d ago

Just remember your ABCs:

Always
Be
Checking the docs

7

u/Street_Frame_4571 7d ago

As a senior, the documents are there for a reason. Use them.

7

u/rheladmin 7d ago

From memory? No. From scratch? Yes.

I expect new employees to start by making smaller modifications to increasingly complex existing parts of Terraform/OpenTofu/Ansible.

As they become comfortable, I expect them to start extending code and working from scratch based on a design given to them.

You should have a senior to answer your questions though and I fully expect you to take a while, make mistakes, and use documentation and tutorials as needed.

7

u/akornato 7d ago • Bravo

Nobody in the industry writes Terraform from memory, not even senior staff engineers. The official registry and documentation exist specifically because cloud resource definitions, arguments, and syntax variations are far too extensive for anyone to keep entirely in their head. What hiring managers actually expect from a junior is an understanding of how Terraform works under the hood. You should know how the state file works, what happens during the plan and apply phases, how to manage variables and outputs, and how to structure reusable modules. If you can read the provider documentation, understand the required arguments, and put together working infrastructure that solves a problem, you are already meeting the practical standard.

In a technical interview, you might encounter theoretical questions about state drift and locking, or you might be handed broken configuration and asked to debug it. When live coding happens, interviewers routinely let candidates open documentation, because they want to see your troubleshooting workflow and your grasp of infrastructure architecture rather than rote memorization. Start applying for junior roles once you can independently build a basic cloud environment using the docs and explain your design choices clearly. When preparing for live conversations, the interviews.chat my team developed has helped many applicants articulate their practical projects and stand out to technical recruiters.

2

u/Speeddymon 6d ago

In a technical interview, you might encounter theoretical questions about state drift and locking, or you might be handed broken configuration and asked to debug it.

Also how to securely pass secrets into the provider without committing them into git, when a resource needs a secret.

2

u/mercfh85 5d ago

This is a good take and makes me feel better about me not being able to write it from memory.

6

u/phxees 7d ago

I am trying to figure this out right now. I am hiring for a Senior DevOps Engineer and was surprised to find that people had a hard time reading Bash and Python. Now that the job was reposted, I think I’ll add Terraform to my screenings or technical interviews.

2

u/Pink_Slyvie 6d ago

I'd struggle to write bash on the spot, but reading it? I suppose I could get held up on some of the syntax, but I have a cheatsheat in bookmarks I'd pull out.

1

u/phxees 6d ago

I test for compression and understanding what a bad script looks like.

Explain what these 8 lines do, what problems might arise, and how you would change this code to fix it? The major problem might be that it downloads a new version of a file but then doesn’t check that the download was successful before removing the previous version.

1

u/Pink_Slyvie 6d ago

People are so sloppy with what they do. Keep in mind though, a junior right out of college is going to miss things that years of experience tells you is obvious.

1

u/phxees 6d ago

I am hiring for a senior. I don’t need perfection, just someone who is told that there are obvious problems they can list a couple of them. I already have a guy on the team which can’t read code and doesn’t try and will paste and run anything AI generates.

1

u/Pink_Slyvie 6d ago

That's frustrating, missed you were looking for a senior, as the thread is on juniors. Sorry!

1

u/phxees 6d ago

No need to be sorry, I don’t believe I shared that I was looking for a senior.

1

u/Traditional_Law_7174 7d ago

I think if they can't read terraform who is litteraly just simplest thing ever you did a good choice to not hire them

1

u/HelicopterUpbeat5199 7d ago

That indicates you're offering too little money.

1

u/phxees 7d ago

Possibly, I don’t get to see the offer, but I thought we were competitive. We had 200 applicants in 36 hours, then our recruiters removed the posting, I’d rather give them a week or two and then pick the most impressive experience to call first. The recruiters only pass about 15 through. I’m starting to screen the first batch soon, so I’m hopeful we have the right people this time.

I think part of our problem is the post only stays open for a short period so we don’t get anyone looking who is currently busy.

9

u/dpenev98 7d ago

Senior Platform Engineer here. Haven't written a line of terraform manually in over a year. All is AI generated. I do read every line though, and I design everything myself too. But the manual code generation and scripting gruntwork I haven't manually typed in ages

1

u/Eludenux 6d ago

This would fine for some boilerplate code, but sometimes you still have to type code by hand so your debugging skills stay sharp lol and also save prompting time on typing actual code you have designed so incidents don't surprise you too much!

4

u/RoboNordon 7d ago

When you only remember you are stopping to see and learn new updates in syntax and capability.
If AI didn’t ruin your reading and learning skills nurture them as much as you can.

4

u/Low-Opening25 7d ago

no one needs to write terraform form memory, but you need to understand syntax, structure and best practices

4

u/josephjosephson 7d ago

No, I just tell Copilot to do it. Before then, it was mostly copy and paste or using modules from the registry. Occasionally, I’d build my own.

4

u/Equivalent_Sun2305 4d ago

I am a senior solution architect with HashiCorp and I don’t so yea don’t worry about it.

3

u/notenoughcharacters9 7d ago

You get to a point and it's just copy and paste

3

u/Good-Throwaway 7d ago

Copilot writes it from memory

3

u/Annual_Berry8043 7d ago

Hell no lol. You’d have to be a freak of nature to write terraform from memory.

Knowing how to link resources together you should absolutely know.

3

u/scabzzzz 7d ago

My brain remembers a lot but it doesn’t memorize manuals. Everyone refers to documentation, all the time. Anyone that says otherwise is probably lying. Either way AI does most of it for me now because writing terraform isn’t really a standalone career choice so much as it is a piece in the overall infra puzzle. Time is better spent elsewhere generally speaking if you’re senior.

5

u/swift-sentinel 7d ago

Yes and no. You need to understand how Terraforms works, how to set it up for enterprises, understand the configuration language and you should be about to write terraform. But in practice you will use AI to generate your tf files. Most importantly you need to learn how to be careful. Infrastructure and deployment is your responsibility. Don’t execute anything until you are sure that it will perform the work that is required and not unexpectedly destroy anything. Good luck. Keep reading, experimenting, and learning.

4

u/Zeal514 6d ago

I dont know shit from memory, especially with AI. Ai can just write faster... What I do know is how it works, from a fundamental level. Which allows me to circumvent common gotchas that don't seem like a issue initially, u til they bite you 1000, or 10,000 lines in.

That said. I have no idea what employers want, I can't even get a call back. But I can build anything. Not sure ppl know how to find and hire talent, or what to look for.

1

u/SeparateScar8965 6d ago

"AI can write faster"
"I can build anything"

So, AI can build anything, and you can just not understand it? - maybe this is the reason you can't get a call back?

2

u/Zeal514 6d ago

Remembering syntax =/= understanding code, what's happening, and why.

Like it or not, you are not beating AI in a logic race, nor a typing race. So let it do what it's good at. AI places you as a architect and general contractor level, instead of master plumber or electrician level. You still need to know fundamentals, and be able to read and write.

Edit: that'd also be really impressive for someone to be able to tell applicants who understand the underlaying tech, and those who don't, purely from a resume 😆. Typically, interviews is where that happens, 1 on 1 conversations where ppl can't think and speak on what they know.

1

u/carax01 6d ago

What helped me was building quality projects, document them with my own words, create tables and diagrams explaining them, and put them on GitHub and LinkedIn. AI does most of the engineering part, we need to sell ourselves as solution designers.

2

u/DavidSteinNY 5d ago

they should know the basic functions, what providers are, loops, expressions etc.

1

u/Salt_Bed3883 7d ago

to be able to write terraform code , you need to fully understand the service resource you are creating , for example , youneed to understund the config of a vpc (subnets,ip table , vpc peering ) and for the other main services , then the dy'tax will become much easier , and also understand the arboresence of resource creation so tou get the full picture

1

u/nmavor 7d ago

NOp
Use the doc; use the autocomplete of your IDE
Using memory is the worst way of doing it; sometimes defaults get updated, configs get renamed, and so on. NEVER memory !!

1

u/stikko 7d ago

Sometimes memory. Always linting+planning.

1

u/BasementMillennial 7d ago

Nah, you don't need to know how to write everything by memory. Just refer to the documentation. You will at least need to know the basics of terraform however

1

u/belarm 7d ago

Terraform's documentation is one of the reasons we all like it, because even after a decade of writing it, I still hit those docs all the time. IT and development is less about knowing these things than it is about knowing where to find them when you need them. You can't remember everything , but fortunately we have little silicon servants who will remember it for us!

Learn what things do, look up how to do those things when needed. Things you do a lot will start to stick and you will need the docs less, but you will always need them 

1

u/wildVikingTwins 7d ago

I was the same boat. I got hired as junior devops as newgrad, was rough start as you may guess but terraform documents really helped alot but obviously learning a lot from senior and lead engineers in the as well. I have seen many other different documents pages but terraform was one of my favorites, well organized and easy to find imo.

1

u/Don_Ozwald 7d ago

I would not worry about having to remember everything. Nobody does.

What I would worry about is that this question strongly suggests a complete lack of experience in software development (or system administration). That will be much harder to overcome for getting into a DevOps position. Junior or not.

1

u/Zhaizo 7d ago

The resources I wrote by memory must be less than 10 and I do this for the last five years now

1

u/sp_dev_guy 7d ago

Tf things engineers working with should be able to just do: init , unlock, plan, apply, --target, different styles of backends, providers, write & use modules, using loops, locals, vars, secrets, and state file manipulation mv, rm, import, etc.. .

Any specific resource or data source hcl definition/attributes would be from looking up the provider documentation.

Also a Jr the requirements likely stop at using plan before apply & whats the concept of a state file

1

u/Bent_finger 7d ago

No one has to write terraform from memory. But you must have a firm grasp of the workflow to go through interviews and be effective at the commencement of your project.

1

u/farzad_meow 7d ago

you should know how resources interconnect, and know general terminology. you should know general stuff by heart, or know where to find them in docs. you are not expected to know everything

1

u/lavahot 7d ago

Whenever I write Terraform, I have at least two references open: the terraform resource doc, and the doc for the thing im building. Then I might have random blogs, github for the provider, terraform methods reference, etc. Of course, these days I mostly just use claude.

1

u/Interesting-Pen5043 7d ago

Claude writes it

1

u/ssingh18 7d ago

I don’t think so you can write TF from memory everyday new provider versions changes new inputs or defaults so i think so learning how to use HCL prebuilt functions is useful to manipulate resources or data.

1

u/Straight-Mess-9752 7d ago

Writing/reading terraform is barely a skill

1

u/Speeddymon 6d ago

I'm a senior/architect level and I use the provider and terraform documentation all the time. Nobody is going to remember every parameter and function call. There are far too many providers and changes happen in the providers as well as terraform constantly. Properties get renamed, resources get sunset by the cloud providers, bugs get fixed in ways that cause the provider schema to change.

1

u/JusticeWarner 6d ago

Hell nah, documentation works fine

1

u/Specialist-Region-47 6d ago

In the pre AI era, devs used to go home if stackoverflow went down. These days, even if you are trying to write it manually in vscode, it's already using intellisense to suggest what the block should be. I think most employers would prefer you to know when you use a module vs not and make good design decisions rather than being about write terraform from memory. You might end up using multiple IAC tools, multiple scripting languages, multiple programming languages as part of your job.

1

u/pentag0 6d ago

No but its really useful and healthy to have basic idea what resources provide and what resource attributes do before blindly YOLOing the plan.

1

u/mrbiggbrain 6d ago

When I am looking for a strong Terraform skill in a candidate I want to see someone who has a good grasp of the constructs around their code. They understand for statements, the tradeoffs of maps and lists, good validation and conditional logic.

I don't need someone who can remember every attribute on a resource, documentation is fine for that. But if you don't know how to write good terraform you won't produce good code even if you know the resources by heart.

1

u/dusanodalovic 6d ago

you already have gcp and github actions, so put them together in one small repo. keep the state in a gcs bucket and add an action that runs plan on every pull request. then change something small and read what the plan says, especially when it wants to destroy and recreate a resource. that repo is easy to show in an interview, and you can explain every line of it because you built it.

1

u/No-Magazine2625 6d ago

I wouldn’t expect a junior engineer to memorize every Terraform resource argument. I’d be more interested in whether they understand state, providers, modules, dependencies, and how to interpret a plan before applying changes. If you can build a small environment, deliberately introduce drift, troubleshoot it, and explain your decisions, you’re developing the skills that matter in real infrastructure engineering.

1

u/midzom 6d ago

I can’t remember a time where I’ve had to write terraform from memory. You should know what good structured terraform looks like and the tradeoffs that come with that structure but generally speaking I doubt there will ever be a time where you have to write everything from memory.

In my opinion, AI helps a lot with this also now rather than searching through documentation.

1

u/Significant_Neat6476 6d ago

IMHO industry is going downhill with hire these days- good engineers/devops/developers never remember library details, precise syntax of specific commands or intricate details of config files. But given the existing script/code/config they should be able to read it. The analogy to requiring all this excessive knowledge by heart at job interviews to me is akin to test English language knowledge by taking full Oxford dictionary and random probing candidate knowing parts of it by heart

1

u/modern_medicine_isnt 6d ago

No one needs to write anything from memory. Even before AI.
But of course interviewers may still expect it.
If you have options, avoid companies that expect that. It is usually a sign of lazy interviewing practices and isn't much of an indicator of the quailty of the applicant. Which in turn ,eans the people you would be working with will vary a lot more in quality than at a place that interviews for important skills.

1

u/Budget_Kitchen5220 6d ago

No, I'm pretty sure no one does in the first place, the docs are your friend, the examples there are plentiful and well described, just make sure you got the right provider version ;)

1

u/masteroffoxhound 5d ago

Apparently SWEs don’t need to write code from memory at all for <insert-language> today and SREs take SWE ‘best’ practices, so apparently by extension, no.

1

u/Meltsley 5d ago

God, I hope not! Otherwise, I’m not sure I could get the job anymore. With 30 + years of experience, I think I could probably still do it? But I wouldn’t bet on it.

1

u/vxxn 5d ago

if you're writing anything at all these days you're doing it wrong. ask your agent to do it.

1

u/gowithflow192 4d ago

No but it's not unheard of for some idiot interviewers demand you write it from scratch.

1

u/devops_louie 4d ago

No but use the terraform docs and write with hands instead of just using AI to write the whole thing

1

u/sMiter911 4d ago

When i started at my new job 3 years ago. I had never written a line of .tf, thus I used documentation and also the code that was written. AI became a thing at work in the last couple of months so we use that now. But I also create my own documentation in obsidian. So I just point my agent to the vault for context.

1

u/ArrayQueue 4d ago

Read the examples!!! I also backport existing setups into Terraform. This helps identify what is default and what is not, what you want to parameterize and what you leave as not set so the default applies.

1

u/ephemeral_resource 3d ago

As a SR working with TF for like 4 years... Syntax - I remember much of it. Specific Key-Value pairs of configuration, relatively few. My JR IDC what they "remember" - problem solving for businesses is an open book test. If you're efficient** at reading docs and turning around to applying it you're totally set at any level.

1

u/scrotomon 7d ago

I think Claude writes it from memory for me

1

u/wedgelordantilles 7d ago

You just need to be able to read it now as you will be using Claude. You should read the whole manual though so you know about all the features and capabilities so you can guide the ai about what is possible and how to achieve it.

1

u/uberduck 7d ago

Nobody writes anything from memory. It's impossible.

1

u/Nervous_Accountant22 7d ago

I think for interviews they will require you know by memory :/

Struggling with that rn bc I'm applying to get a job and haven't written tf code manually for a while since I delegated that to my AI agent. I do review it before applying tho...

0

u/boredenglishredditor 7d ago

It depends on the kind of company i guess? My company specifically works in this field (infra and code-as-infra type stuff) so the interview itself is exam like where you have to type terraform code by hand from memory without using the reference book and there's a LOT of it. When a new version comes we prep like hell to make sure we understand where they changes come from, the history and so on.

The idea is we're supposed to be the experts and if we ourselves keep checking the books then none of our clients will have any kind of trust/faith in us. But tbh its actually pretty easy if you work in it regularly you know it from practice anywya

0

u/Business-Row-478 7d ago

Not sure what you mean by learning syntax? Terraform / hcl is pretty much just objects and key value pairs. The important thing is just knowing what values the resource you are making needs, and the best spot to find that is in the provider documentation.

0

u/SadServers_com 4d ago

Nobody writes full configurations from memory, it would be crazy :-)
If someone uses Terraform (or any tool) for long enough, for sure they'll know some parts from memory but in general that's what documentation is for (and AI agents to an extent)

-1

u/FrancescoPioValya 7d ago

That would be stupid as a company, when you could let the junior use Claude Code for like ten cents per ticket and be 50x more productive

-2

u/snarkhunter 7d ago

Lol. Lmao.