Spicy Pickled Summer Beans

Ingredients
Method
Pack beans, shallot, and 1–2 chiles, depending on your heat preference and the heat of your chiles, in jars, dividing evenly. Bring vinegar, sugar, salt, and 1⅓ cups water to a boil in a small saucepan. Let cool 15 minutes.
Divide brine between jars (vegetables should be submerged) and cover tightly with lids. Chill at least 8 hours before using.
Do ahead: Beans can be pickled 3 months ahead. Keep chilled.