Skip to content

Instantly share code, notes, and snippets.

View tpbrisco's full-sized avatar

Thomas Brisco tpbrisco

View GitHub Profile
@tpbrisco
tpbrisco / dynamic-asgs.sh
Created September 1, 2021 00:36
Demonstrate Dynamic Egress policies and destinations APIs
#!/bin/bash
set -euo pipefail
# Notes:
# A policy can have multiple destinations.
# Destinations that are updated (new rules added) are reflected quickly on the system
# A policy with added destinations will not be reflected - it must be deleted re-added
# API endpoints gleaned from
# https://github.com/cloudfoundry/cf-networking-release/blob/f8c6b47ffe60e1f6c0740b85054a75dc52e16466/docs/dynamic_egress_api.md