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.

acme/infra · pull requests
Get started for free
  1. Starts whenSomeone mentions @usemerlin-ai on a pull request that changes Terraform
  2. Merlin worksClaude Code or Codex reads the Terraform diff for public buckets, wide IAM policies and security groups open to the internet
  3. 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-ai in a comment on a pull request that changes Terraform.

acme/infra

Type/to searchL
CodeIssues8Pull requests12AgentsActionsProjectsSecurityInsightsSettings

Add the exports bucket and worker#318Code

Openlenawants to merge 3 commits intomainfromfeat/exports-bucket

Conversation 5 Commits 3 Checks 3 Files changed 3+48−6

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.

  1. 01Open the pull request
  2. 02Find the changed .tf files
  3. 03Read the bucket settings
  4. 04Check the public access block
  5. 05Read each IAM statement
  6. 06Look for wildcards
  7. 07Check the security group rules
  8. 08Look up a safer setting
  9. 09Comment line by line

With Merlin

One mention gets each risky setting listed on the pull request, next to a safer one.

  1. @usemerlin-ai on the pull requestAsked by the reviewer
  2. Reads the Terraform diff on Marco's MacBookBuckets, IAM policies and security groups
  3. 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.

  1. 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.
  2. 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.
  3. 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.

acme/infra · pull requests

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin on GitHub

  1. IntegrationThe GitHub app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex reads the Terraform diff
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin comments with each finding

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.