Created
September 15, 2020 15:26
-
-
Save AMMullan/27a3c2989696f3b4918cefbc07af1109 to your computer and use it in GitHub Desktop.
Self-Destructing Lambda
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
import os | |
import boto3 | |
lmbda = boto3.client ('lambda') | |
def lambda_handler(event, context): | |
lmbda.delete_function(FunctionName=context.function_name) | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment