How to make multiple writes in a transaction

Guide to making transactional writes

txn to wrap multiple requests into one transaction:


etcdctl --endpoints=$ENDPOINTS put user1 bad
etcdctl --endpoints=$ENDPOINTS txn --interactive

value("user1") = "bad"

success requests (get, put, delete):
del user1

failure requests (get, put, delete):
put user1 good

Last modified February 28, 2022: Create doc branch for v3.6 (9ed5c74)