IT
Check a Terraform change for risky access
Mention Merlin on a Terraform pull request. It comments on any public bucket, wide IAM policy or open security group the change adds.
@Merlin from now on, when someone mentions you on a pull request in this repository, check its Terraform changes for risky access: security groups open to 0.0.0.0/0, buckets made public and IAM policies with a wildcard action or resource. Comment with each finding, its file and line and a safer setting, or say you found none. Only comment: don't approve the pull request or push changes.
- Starts whenSomeone mentions
@usemerlin-aion a pull request that changes Terraform Merlin worksClaude Code or Codex reads the Terraform diff for public buckets, wide IAM policies and security groups open to the internet
- You getA comment on the pull request with each finding, its file and a safer setting
Tools
- GitHub
Capabilities
- Integrations
How it works
From a Terraform pull request to a list of risky access.
Mention
@usemerlin-aiin a comment on a pull request that changes Terraform.Claude Code or Codex checks the changes for security groups open to
0.0.0.0/0, buckets made public and IAM policies with a wildcard action or resource.Each finding comes with its file and line and a safer setting. Merlin only comments: it doesn't approve or push.
Mention @usemerlin-ai in a comment on a pull request that changes Terraform.
Claude Code or Codex checks the changes for security groups open to 0.0.0.0/0, buckets made public and IAM policies with a wildcard action or resource.
Each finding comes with its file and line and a safer setting. Merlin only comments: it doesn't approve or push.
acme/infra
Type/to searchLAdd the exports bucket and worker#318Code
Openlenawants to merge 3 commits intomainfromfeat/exports-bucket
lenacommented 1 hour agoAuthor
Adds an S3 bucket for customer CSV exports, an IAM role for the export worker and a security group for it.
Before and after
Risky access gets caught in review, not in production.
Without Merlin
A reviewer reads every Terraform change line by line and looks up a safer setting for anything that looks wrong.
- 01Open the pull request
- 02Find the changed .tf files
- 03Read the bucket settings
- 04Check the public access block
- 05Read each IAM statement
- 06Look for wildcards
- 07Check the security group rules
- 08Look up a safer setting
- 09Comment line by line
With Merlin
One mention gets each risky setting listed on the pull request, next to a safer one.
@usemerlin-aion the pull requestAsked by the reviewerReads the Terraform diff on Marco's MacBookBuckets, IAM policies and security groups
- Findings commented on the pull requestEach with its file and a safer setting
Setup
Install the GitHub app on your infrastructure repository, then mention Merlin on any Terraform change.
Set these up once and any reviewer can ask for an access check. Merlin only comments, so approving stays with your reviewers.
- 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
- 02Install the GitHub appIntegrationsPick the repositories Merlin can access. It sees mentions, reads the pull request and replies in the thread. Pushes use the machine owner's own Git access.
- 03Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.
Prompt
Tell Merlin what to check on every Terraform pull request.
@Merlin from now on, when someone mentions you on a pull request in this repository, check its Terraform changes for risky access: security groups open to 0.0.0.0/0, buckets made public and IAM policies with a wildcard action or resource. Comment with each finding, its file and line and a safer setting, or say you found none. Only comment: don't approve the pull request or push changes.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin on GitHub
- IntegrationThe GitHub app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex reads the Terraform diff
- SteeringYour team steers the work in the thread
- ResultMerlin comments with each finding
Related use cases
More IT tasks you can hand to Merlin.
- AutomationsYour agent's MCP
IT
Weekly admin access diff
Every Monday, Merlin compares who holds admin rights in Okta, Google Workspace, GitHub and AWS with last week's lists. You get the admins added and removed in your IT channel.
Every Monday at09:00Added and removed admins in#it - Integrations
IT
Rotate a secret that leaked
Tell Merlin in Slack which secret leaked. It rotates it in AWS, moves the code off the old value and sends you the pull request.
@Merlinin#securityA pull request, linked in the thread - IntegrationsMemoryYour agent's MCP
IT
Look into a security alert
Mention Merlin under a security alert. It checks the user's recent sign-ins and devices in Okta and tells you whether it looks expected.
@Merlinin an alert's threadExpected or not, with the evidence
Bring your coding agents into the tools your team already uses.
Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.