Pinned Tweet
a rename in a pull request can become a destroy/create in terraform.
That's a very expensive way to improve a resource name.
Imagine a simple cleanup:
"aws_instance.web" becomes "aws_instance.api". Same AMI. Same settings. same intended EC2 instance.
but Terraform tracks the object through its address in state. A new label doesn't tell it that the old object should keep its job.
Make that relationship explicit:
moved {
from = aws_instance.web
to = aws_instance.api
}
Now Terraform can carry the existing object to the new address in the plan. Applying the reviewed plan records the move in state.
The important word is address.
a moved block is not a force field around the instance. Change another argument that requires replacement, and the plan can still replace it.
My rule: separate the rename from the redesign.
First, review the address mapping with the resource settings unchanged. Then review behavior changes in a separate step. Fewer moving parts, clearer evidence.
and don't delete migration history just because your workspace is up to date. Someone consuming your module may skip three releases. Their state still needs a route from the old address to the new one.
would your next Terraform cleanup survive a review of the full plan, or only a review of the diff?
#Terraform #InfrastructureAsCode #DevOps
Sri retweeted
a rename in a pull request can become a destroy/create in terraform.
That's a very expensive way to improve a resource name.
Imagine a simple cleanup:
"aws_instance.web" becomes "aws_instance.api". Same AMI. Same settings. same intended EC2 instance.
but Terraform tracks the object through its address in state. A new label doesn't tell it that the old object should keep its job.
Make that relationship explicit:
moved {
from = aws_instance.web
to = aws_instance.api
}
Now Terraform can carry the existing object to the new address in the plan. Applying the reviewed plan records the move in state.
The important word is address.
a moved block is not a force field around the instance. Change another argument that requires replacement, and the plan can still replace it.
My rule: separate the rename from the redesign.
First, review the address mapping with the resource settings unchanged. Then review behavior changes in a separate step. Fewer moving parts, clearer evidence.
and don't delete migration history just because your workspace is up to date. Someone consuming your module may skip three releases. Their state still needs a route from the old address to the new one.
would your next Terraform cleanup survive a review of the full plan, or only a review of the diff?
#Terraform #InfrastructureAsCode #DevOps
Sri retweeted
“I’ve been around long enough to see the waves come and go. Right now, I’m just on the beach watching everyone have fun.” 🌊
That’s Kelsey Hightower on the AI hype. He’s spent his career making Kubernetes and cloud native easier to understand, through talks, demos and a habit of learning in public. His path there was anything but traditional.
At ContainerDays Singapore, Mumshad sat down with Kelsey for over an hour and a half. They covered:
🍟 McDonald’s at 14 → Puppet Labs → CoreOS → Google
🧠 Why depth beats a long list of tools
🎤 Around 1,000 talks, and the one that got rejected
📈 Activities vs. Impact, and when to switch jobs
🤖 Why he isn’t as excited about AI as the rest of us, and whether it’s a bubble
Watch the full conversation on YouTube 👇
kode.wiki/3VgJXn6
#KelseyHightower #Kubernetes #CloudNative #DevOps #PlatformEngineering #CareerGrowth #SoftwareEngineering #ContainerDays #KodeKloud
The older I get, the more I just want to focus on what actually matters and stay out of the drama. And I also find myself rooting for others a lot more than I used to. I guess that's what getting older does to you.
4
386
what your agent remembers between sessions is a design decision. accidental memory is the risky kind.
the persistent memory acts like a configuration layer. a memory made today can shape tool choice and reasoning later.
plan for:
- stale facts outranking today's reality
- wrong or poisoned content saved and trusted later
- crossed boundaries between users or customers
treat memory as candidate context, not authority. gate writes, isolate with real access controls, verify changeable facts, allow view/edit/delete.
could you show a customer what your agent remembers, and remove it?
6
5
498
Sri retweeted
The diagram shows what you built. It rarely shows why.
Example:
A customer needs a separate deployment because their data must stay in-region. Months later, a new engineer sees two deployments doing the same job and raises a PR to merge them. The constraint lived in a meeting, not the repo.
That's what an architecture decision record is for. One short doc per decision:
- context,
- decision,
- consequences.
if it's expensive to reverse, or the constraint is invisible to whoever inherits the system, write it down. Either one is enough. A routine config tweak doesn't need one; a significant config choice can.
If a new engineer could "simplify" this into an incident a year from now, it deserves a page in your repo.
What's the decision in your system that would be hardest to explain to someone new?
The diagram shows what you built. It rarely shows why.
Example:
A customer needs a separate deployment because their data must stay in-region. Months later, a new engineer sees two deployments doing the same job and raises a PR to merge them. The constraint lived in a meeting, not the repo.
That's what an architecture decision record is for. One short doc per decision:
- context,
- decision,
- consequences.
if it's expensive to reverse, or the constraint is invisible to whoever inherits the system, write it down. Either one is enough. A routine config tweak doesn't need one; a significant config choice can.
If a new engineer could "simplify" this into an incident a year from now, it deserves a page in your repo.
What's the decision in your system that would be hardest to explain to someone new?
Sri retweeted
Terraform state is not bookkeeping. Splitting it is a design decision.
State layout shapes two things: which resources one plan can manage directly, and what one state lock can block.
That is a design decision, and most teams make it by accident.
Split by failure domain, not by folder aesthetics:
- One state per environment answers "what can break at once" at the environment level.
- One state per component (network, cluster, app) narrows what one bad apply touches directly. With component-scoped configuration, a plan against the app state targets app resources only.
The trade-offs are real: more states means more orchestration, explicit cross-state references, and drift that can span boundaries. You are buying a smaller direct-change scope with coordination overhead.
Two important caveats. Splitting Terraform state improves ownership boundaries and limits the scope of state operations. It does not automatically guarantee isolation. Provider permissions, shared resources, remote dependencies, and cross-state references can still create coupling across environments.
And "separate states mean independent infrastructure" is not an assumption we should make. It is a boundary we still need to validate.
What is the largest thing a single terraform apply could change in your setup, and is that a decision or an accident?
Terraform state is not bookkeeping. Splitting it is a design decision.
State layout shapes two things: which resources one plan can manage directly, and what one state lock can block.
That is a design decision, and most teams make it by accident.
Split by failure domain, not by folder aesthetics:
- One state per environment answers "what can break at once" at the environment level.
- One state per component (network, cluster, app) narrows what one bad apply touches directly. With component-scoped configuration, a plan against the app state targets app resources only.
The trade-offs are real: more states means more orchestration, explicit cross-state references, and drift that can span boundaries. You are buying a smaller direct-change scope with coordination overhead.
Two important caveats. Splitting Terraform state improves ownership boundaries and limits the scope of state operations. It does not automatically guarantee isolation. Provider permissions, shared resources, remote dependencies, and cross-state references can still create coupling across environments.
And "separate states mean independent infrastructure" is not an assumption we should make. It is a boundary we still need to validate.
What is the largest thing a single terraform apply could change in your setup, and is that a decision or an accident?
Sri retweeted
Your ops agent reads your logs. Those logs can carry attacker instructions.
If an agent can read and act, anyone who can write a log line has a shot at steering it. And prompt injection is not SQL injection - sanitizing the input alone won't save you. The goal is reducing likelihood and impact, not eliminating risk.
so design for it:
- separate reading from acting (limits mutations - reads can still leak, so watch outbound paths too)
- a short allow-list of actions
- human approval for higher-risk changes
- all tool output is data, never instructions
mitigations shrink the blast radius. they don't make it zero.
which inputs can your agents read, and who can write to them?
Your ops agent reads your logs. Those logs can carry attacker instructions.
If an agent can read and act, anyone who can write a log line has a shot at steering it. And prompt injection is not SQL injection - sanitizing the input alone won't save you. The goal is reducing likelihood and impact, not eliminating risk.
so design for it:
- separate reading from acting (limits mutations - reads can still leak, so watch outbound paths too)
- a short allow-list of actions
- human approval for higher-risk changes
- all tool output is data, never instructions
mitigations shrink the blast radius. they don't make it zero.
which inputs can your agents read, and who can write to them?
Sri retweeted
Before you tune the AI, agree with the customer on what 'good' means. Without that agreement, every prompt change is an opinion.
A demo impresses with a handful of outputs someone picked. Production has to handle the cases nobody picked: the messy ones, the rare ones, the ones that failed last time.
The practical tool is an evaluation set, and the important part is who signs it. Build it from representative cases you are actually allowed to use - including failures and edge cases, not only clean examples.
Then agree on three things with the customer: what an acceptable answer looks like, which mistakes are unacceptable (the ones that need a hard block, not a lower score), and where a human reviews before anything reaches a user.
Only now does tuning become engineering. Every prompt or model change runs against the same set, and you compare results instead of debating impressions. 'Feels better' is not a metric.
Two honest limits. First, a passing suite does not prove production is safe: it proves the cases you agreed on. Coverage is a decision, not a fact. Second, evals measure answer quality, not workflow value - pair them with the real outcome the customer cares about.
None of this needs exotic tooling. It needs the customer's real cases, their definition of good, and the discipline to re-run both on every change.
If you swapped the model behind your AI feature tonight, how would you know tomorrow whether it got better or worse?
Before you tune the AI, agree with the customer on what 'good' means. Without that agreement, every prompt change is an opinion.
A demo impresses with a handful of outputs someone picked. Production has to handle the cases nobody picked: the messy ones, the rare ones, the ones that failed last time.
The practical tool is an evaluation set, and the important part is who signs it. Build it from representative cases you are actually allowed to use - including failures and edge cases, not only clean examples.
Then agree on three things with the customer: what an acceptable answer looks like, which mistakes are unacceptable (the ones that need a hard block, not a lower score), and where a human reviews before anything reaches a user.
Only now does tuning become engineering. Every prompt or model change runs against the same set, and you compare results instead of debating impressions. 'Feels better' is not a metric.
Two honest limits. First, a passing suite does not prove production is safe: it proves the cases you agreed on. Coverage is a decision, not a fact. Second, evals measure answer quality, not workflow value - pair them with the real outcome the customer cares about.
None of this needs exotic tooling. It needs the customer's real cases, their definition of good, and the discipline to re-run both on every change.
If you swapped the model behind your AI feature tonight, how would you know tomorrow whether it got better or worse?
A successful PoC proves an idea. It doesn't prove the customer's team can operate it.
That needs its own acceptance criteria.
Before calling a production handover done, I'd ask five questions:
1. Ownership
Who handles this after handover? Name the responsible team, the escalation contact and who can make a decision when something breaks.
2. Access
Can the customer operate it with the permissions intended for production, rather than the broad access used to get the build moving?
3. Failure handling
If a dependency times out, what does the user see? Where does the team see the failure? Is retrying safe, or could it repeat an action?
4. Success evidence
What outcome did we agree to improve, and where can the customer measure it? "The deployment is healthy" and "the workflow is useful" are different checks.
5. Recovery
How do we get back to a good state? What does rollback actually undo, and which data changes or external actions need separate repair?
These questions belong in the delivery plan, not in a document written after the team has moved on.
My handover test: could the customer's team handle a bad day without depending on the builder's memory?
If not, the PoC may be successful. The operational handover isn't finished.
2
5
395








