Skip to content

Add delete-time destroy response templating (Closes #125) - #167

Merged
devops-rob merged 2 commits into
mainfrom
feat/125-destroy-response-templating
Jul 29, 2026
Merged

Add delete-time destroy response templating (Closes #125)#167
devops-rob merged 2 commits into
mainfrom
feat/125-destroy-response-templating

Conversation

@devops-rob

@devops-rob devops-rob commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add opt-in {response.<path>} placeholder substitution in terracurl_request destroy URL, body, headers, and query parameters at delete time
  • Resolve values from the stored create response JSON (including nested paths and array indexes), with create-time validation after successful create
  • Existing destroy configs without placeholders are unchanged; includes guide, examples, tests, and CHANGELOG 2.9.0 entry

Test plan

  • Unit tests for path extraction, substitution, escaping, and error cases
  • Acceptance tests for flat ID, nested ID, and body-based destroy templating
  • Full go test ./... passes
  • CI green on this PR

Closes #125

Made with Cursor

Resolve {response.<path>} placeholders from the stored create response at destroy time so APIs that return server-generated IDs can be deleted without Terraform self-references. Closes #125.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@devops-rob
devops-rob merged commit 330082d into main Jul 29, 2026
26 checks passed
@devops-rob
devops-rob deleted the feat/125-destroy-response-templating branch July 29, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Dynamic parameter in destroy

1 participant