- Mais recentes
- Mais votos
- Mais comentários
It looks like you're using the "Test" functionality in the Lambda console and that you've accepted the default test event format which is {'key1': 'value1', 'key2': 'value2', 'key3': 'value3'}
.
If you want your code to work with an event where resources
is a part of the event then you need to configure the test event to be formatted that way. Creating a new test event gives you the ability to create any test event you like; but it also has a bunch of examples events that can come from other AWS services which might trigger your Lambda function. You can edit the examples once you've selected them in order to fully test your Lambda function.
Hello.
What kind of information is included in the event?
Does "resources" exist in event?
An error will occur if this does not exist.
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 2 meses
- AWS OFICIALAtualizada há um ano