mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Profile in place with the invoke local
Add a section with a warning about the AWS profile/IAM role `invoke local` (to alleviate issue #2903)
This commit is contained in:
parent
fb057d12c8
commit
d0f6b1d320
@ -147,3 +147,10 @@ custom:
|
||||
dev: devProfile
|
||||
prod: prodProfile
|
||||
```
|
||||
|
||||
#### Profile in place with the 'invoke local' command
|
||||
|
||||
**Be aware!** Due to the way AWS IAM and the local environment works, if you invoke your lambda functions locally using the CLI command `serverless invoke local -f ...` the IAM role/profile could be (and probably is) different from the one set in the `serverless.yaml` configuration file.
|
||||
Thus, most likely, a different set of permissions will be in place, altering the interaction between your lambda functions and others AWS resources.
|
||||
|
||||
*Please, refer to the `invoke local` CLI command documentation for more details.*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user