-
-
Save babakc/7fd513fb29f2b14d98fc82e29d76f53d 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
import boto3 | |
import time | |
def lambda_handler(event, context): | |
time.sleep(60) | |
ssmclient = boto3.client('ssm') | |
ssmclient.delete_parameter(Name="pwd-" + event['resources'][0].split('/')[1]) | |
print "Password for pwd-" + event['resources'][0].split('/')[1] + " deleted." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment