Skip to content

Commit 0b22a90

Browse files
authored
Merge pull request #1973 from brefphp/improve-docs
Fix #1925 Improve function documentation
2 parents 64b07dc + 5a3a008 commit 0b22a90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/runtimes/function.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ $result = json_decode($result->get('Payload')->getContents(), true);
265265
```
266266

267267
<Callout>
268+
**Important**: When invoking Lambda functions, use the exact function name as it appears in the AWS console, not the function name from `serverless.yml`. For example, if your service is named `my-app` and your function is named `hello`, the actual Lambda function name will be `my-app-dev-hello` (or similar, depending on your stage).
269+
</Callout>
270+
271+
<Callout type="info">
268272
A lighter alternative to the official AWS PHP SDK is the [AsyncAws Lambda](https://async-aws.com/clients/lambda.html) package.
269273
</Callout>
270274

0 commit comments

Comments
 (0)