Created
June 15, 2018 15:57
-
-
Save mgla/80380b63e0666b1935dbc3cf07e41b4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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