diff --git a/docs/providers/aws/guide/credentials.md b/docs/providers/aws/guide/credentials.md index e803d0210..70fb3575c 100644 --- a/docs/providers/aws/guide/credentials.md +++ b/docs/providers/aws/guide/credentials.md @@ -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.*