Create Python Runtime Lambda Function | Testing Python Lambda Function

Pubblicato il: 27 gennaio 2022
sul canale di: DataMinds Studio
61
5

Hi friends,

Today as part of AWS knowledge, I have worked on aws python lambda function in aws console. As I copied and pasted a piece of code in lambda console that copied from the other source. As I'm giving the code given below

Part 1 : Create a role for using lambdabasicodeexecution
Part 2 : Select run time as python3.9 version
Part 3 : Go to Lambda console and create a function to test
Part 4 : Paste the below and replace the exist code and save it
Part 5: Edit and test the function and click the Deploy button.
Part 6 : Check the status of lambda function whether it is successfully executed.


Sample Code :
import json
def lambda_handler(event, context):
print('Function loaded successfully');
response = {
'item1': ('Received ' + event['key1']),
'item2': ('Received ' + event['key2']),
'item3': ('Received ' + event['key3'])
}
print('Returning response: ')
print(response)
return response


In questa pagina del sito puoi guardare il video online Create Python Runtime Lambda Function | Testing Python Lambda Function della durata di ore minuti seconda in buona qualità , che l'utente ha caricato DataMinds Studio 27 gennaio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 61 volte e gli è piaciuto 5 spettatori. Buona visione!