Here's our favorite way to use up an abundance of green beans.
Arrange green beans and garlic in clean glass jars. In a saucepan, bring vinegar, salt, peppercorns, sugar, and chiles to a boil. Carefully pour mixture into jars, secure lids, and let cool to room temperature.
Pickles can be refrigerated up to 1 month.