Skip to content

Instantly share code, notes, and snippets.

@mgla
Created June 15, 2018 15:57
Show Gist options
  • Save mgla/80380b63e0666b1935dbc3cf07e41b4b to your computer and use it in GitHub Desktop.
Save mgla/80380b63e0666b1935dbc3cf07e41b4b to your computer and use it in GitHub Desktop.
from pprint import pprint
import boto3
def lambda_handler(event, context):
client = boto3.client('glue')
for endpoint in (client.get_dev_endpoints()['DevEndpoints']):
pprint(client.delete_dev_endpoint(
EndpointName= endpoint["EndpointName"]
))
return "Dev endpoints deleted"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment