SES receiver for Email Attachment

I would like to receive Email that is done but now i would like to fetch Attachment from Email and wants to store to my S3 bucket using Lambda NodeJS function, can anyone let me know how to do this ?

Actually i was following below link

but getting error in template that is not exist now,
Error Information :
The CloudFormation template is invalid: [/Resources/S3EMailBucketPermissions/Type/Bucket/Ref] ‘null’ values are not allowed in templates