terraform-provider-ec
AGENTS.md183 starsChanged 19 days agoApache-2.0View on GitHub
This repo is the Terraform provider for Elastic Cloud (the "cloud provider"), written in Go. It manages Elastic Cloud hosted deployments, serverless projects, traffic filters, extensions, and related resources through the Elastic Cloud API. - Acceptance tests (make testacc, and anything gated by TF_ACC=1) create and destroy real deployments against the live Elastic Cloud API (EC_API_KEY) and cost real money. Never auto-run acceptance tests from an agentic workflow — no live-cloud credentials are exposed to agents by default. The openspec-implementation-loop…
- Reads credentials
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- existing-entity-requirementsSkill
- new-entity-requirementsSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-continue-changeSkill
- openspec-exploreSkill
- openspec-implementation-loopSkill
- openspec-new-changeSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-verify-changeSkill
- pr-monitoring-loopSkill
- releaseSkill
- requirements-verificationSkill
- schema-coverageSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Follow the project's coding conventions in coding-standards.md.
- Very specific: line 40
If you changed resource/data-source schemas, templates, or examples, regenerate docs with env -u TF_ACC make docs-generate and verify with …
- Very specific: line 44
If you changed openspec/: env -u TF_ACC make check-openspec
- Very specific: line 46
If this is a Terraform entity change, or examples/provider schemas changed: env -u TF_ACC make install validate-examples
- Very specific: line 47
If you changed the serverless client inputs, regenerate with env -u TF_ACC make gen.
- Very specific: line 49
Add a .changelog/{PR}.txt entry after the PR number is known (user-facing release-note:… or release-note:none for non-user-facing).
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent guide (start here)
This repo is the Terraform provider for Elastic Cloud (the "cloud provider"), written in Go. It manages Elastic Cloud hosted deployments, serverless projects, traffic filters, extensions, and related resources through the Elastic Cloud API.
Before making changes
- Follow the project's coding conventions in
coding-standards.md. - For contributor setup, PR flow, and the per-PR
.changelog/convention, seecontributing.md.
High-level dev docs
- Repo orientation and where code lives:
repo-structure.md - Common workflows and "what to do when":
development-workflow.md - Testing (unit + acceptance) and required env:
testing.md - Generated clients (serverless OpenAPI) and regeneration:
generated-clients.md - Documentation generation (
tfplugindocs):documentation.md - OpenSpec authoring (Purpose / SHALL-MUST / Scenarios):
openspec-requirements.md - OpenSpec change loop (explore / propose / apply / loop / verify / sync / archive):
openspec-workflows.md
Testing note — acceptance tests hit the real, paid Elastic Cloud API
- Acceptance tests (
make testacc, and anything gated byTF_ACC=1) create and destroy real deployments against the live Elastic Cloud API (EC_API_KEY) and cost real money. Never auto-run acceptance tests from an agentic workflow — no live-cloud credentials are exposed to agents by default. Theopenspec-implementation-loopnever setsTF_ACC. In PR mode it recommends the human run namedTestAcc…cases locally and confirms beforegh pr create(skip = wait on Buildkite); implementors,openspec-verify-change, and CI reuse stay acc-free. The full suite runs on Buildkite per PR and is a required status check onmaster(buildkite/terraform-provider-ec-acceptance); a human working on a change should run the targetedTestAcc…case(s) locally first. Seetesting.md. - There is no local Docker stack for this provider (unlike the Elastic Stack provider). Unit
tests (
env -u TF_ACC make unit) need no credentials and are always safe to run.
After making changes
- Build:
env -u TF_ACC make build - If you changed resource/data-source schemas, templates, or examples, regenerate docs with
env -u TF_ACC make docs-generateand verify withmake tfproviderdocs. Seedocumentation.md. - Lint:
env -u TF_ACC make lint env -u TF_ACC make notice(commit ifNOTICEis dirty; Go CI fails on a dirty NOTICE)- If you changed
openspec/:env -u TF_ACC make check-openspec - Unit tests (no cloud, always safe):
env -u TF_ACC make unit - If this is a Terraform entity change, or examples/provider schemas changed:
env -u TF_ACC make install validate-examples - If you changed the serverless client inputs, regenerate with
env -u TF_ACC make gen. Seegenerated-clients.md. - Add a
.changelog/{PR}.txtentry after the PR number is known (user-facingrelease-note:…orrelease-note:nonefor non-user-facing). Seecontributing.md.
The OpenSpec CLI is installed via
make setup-openspec(Node.js 24,npm ci) and validated bymake check-openspec/.github/workflows/openspec.yml. Author specs peropenspec-requirements.md. Drive a change with the skills under.agents/skills/— seeopenspec-workflows.md. GitHub Agentic Workflows land in later phases of the LLM-driven SDLC epic.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

