aws.route53.delete_record ​
Delete a Route 53 DNS record
Delete a DNS record from an Amazon Route 53 hosted zone.
The record_value must exactly match the current value(s) in Route 53 -- Route 53 requires the full ResourceRecordSet to delete it.
If the hosted zone or record does not exist the workflow completes successfully (idempotent delete).
Inputs:
- hosted_zone_id: Route 53 hosted zone ID (required).
- record_name: Fully-qualified DNS name (required).
- record_type: DNS record type (required).
- record_value: Value string or list of strings -- must match existing record exactly (required).
- ttl: TTL in seconds -- must match existing record (optional, default: 300).
- connection_uuid: Cloud connection UUID for AWS credentials (required).
Outputs (terminal state_data):
- change_id: str -- Route 53 change ID (None if the record did not exist)
- deleted: bool -- True when DELETE change was submitted; False when already absent
Compensation: Use aws.route53.create_record to recreate. Plugin required: context.get_plugin("aws") must expose .route53_client().
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-aws |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
hosted_zone_id | string | Yes | — | Route 53 hosted zone ID |
record_name | string | Yes | — | Fully-qualified DNS record name |
record_type | string | Yes | — | DNS record type |
record_value | json | Yes | — | Value string or list of strings (must match existing) |
ttl | integer | No | — | TTL in seconds (must match existing, default: 300) |
connection_uuid | uuid | Yes | — | Cloud connection UUID for AWS credentials |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
change_id | string | No | — | Route 53 change ID; None on idempotent path |
deleted | boolean | No | — | True when DELETE submitted; False when already absent |
connection_uuid | uuid | No | — | — |
hosted_zone_id | string | No | — | — |
record_name | string | No | — | — |
record_type | string | No | — | — |
record_value | json | No | — | — |
ttl | integer | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "aws.route53.delete_record",
"initial_data": {
"hosted_zone_id": "value",
"record_name": "value",
"record_type": "value",
"record_value": "value"
}
}