1 Answer
- Newest
- Most votes
- Most comments
2
You need to create a Data event on the S3 bucket to trigger your lambda function. Parse the Event to read the bucket and key information in the Lambda Function.. https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventNotifications.html
ie
import urllib.parse
bucket = event['Records'][0]['s3']['bucket']['name']
key = urllib.parse.unquote_plus(event['Records'][0]['s3']['object']['key'], encoding='utf-8')
filename_json = key.split("-")
Your Lambda function can then create the appropiate opportunity in your partner portal.
Relevant content
- Accepted Answerasked 3 months ago
- Accepted Answerasked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
Thank you sir, Could you please give some reference for the function to create opportunity
Afraid I do not have any reference for creating Partner oppertunties in code.. Its not something I have used. We use the partner portal currently