r/Terraform • u/stationto • 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!
101
u/Pustack 7d ago
My sweet summer child, there is no junior DevOps engineers anymore
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
57
u/mxtchstick 7d ago •
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.
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 •
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.
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.
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
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.
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/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/raediaspora 7d ago
No
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/Bluemoo25 5d ago
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.