Create/delete a record in Route53 using AWS CLI

Create

Make the following file addrecord.json with following contents:

{
            "Comment": "CREATE a record ",
            "Changes": [{
            "Action": "CREATE",
                        "ResourceRecordSet": {
                                    "Name": "dns.domain.tld",
                                    "Type": "A",
                                    "TTL": 300,
                                 "ResourceRecords": [{ "Value": "8.8.8.8"}]
}}]
}
Invoke AWS CLI:
aws route53 change-resource-record-sets --hosted-zone-id {{ zone_id }} --change-batch file://./addrecord.json
Delete

Make the following file delrecord.json with following contents:
{
            "Comment": "DELETE a record ",
            "Changes": [{
            "Action": "DELETE",
                        "ResourceRecordSet": {
                                    "Name": "dns.domain.tld",
                                    "Type": "A",
                                    "TTL": 300,
                                 "ResourceRecords": [{ "Value": "8.8.8.8"}]
}}]
}
Invoke AWS CLI:
aws route53 change-resource-record-sets --hosted-zone-id {{ zone_id }} --change-batch file://./delrecord.json
Note:

After invoking AWS CLI command you should be get with the status with the ID

There is another option that could be specified in the json file - UPSERT

UPSERT: Creates a new record set with a specified value, or updates a record set with a specified value if that record set already exists.