scar icon indicating copy to clipboard operation
scar copied to clipboard

Unable to Remove Function if Bucket/Log Group Does Not Exist

Open gmolto opened this issue 6 years ago • 0 comments

Attempting to remove a SCAR function that involves a non-existent S3 bucket or Log Group results in the function not being deleted:

$ scar rm  -n scar-lambda-darknet
The requested log group '/aws/lambda/scar-lambda-darknet' does not exist.
There was an exception in get_bucket_notification_configuration
The specified bucket does not exist
$ scar ls
NAME                   MEMORY    TIME  IMAGE_ID        API_URL
-------------------  --------  ------  --------------  ---------
scar-lambda-darknet      3008     300  grycap/darknet  -

Expected behaviour: Delete the function regardless of the existence of either the Log group or the S3 bucket

gmolto avatar Nov 28 '18 13:11 gmolto