Open Folcon opened 2 years ago
Hi,
AWS SAM is a separate tool that HL doesn't control. Please consult AWS SAM documentation on how to change the profile and region in for the invoke command.
Typing on the phone, but as far as I remember it was something like:
sam local invoke --profile xyz --region eu-central-1
A minimal as well as a recommended list of permissions / policies to use with an IAM user to use holylambda as well as a note in the tutorial of how to not use the default user.
Such information varies according to the deployment solution ones uses and it's already documented upstream in AWS docs.
@FieryCod, sorry I was unclear, I was suggesting that the docs not mentioning that AWS_PROFILE
is expected to be used if you want compatibly with AWS SAM and holy-lambda
is a bug in the docs (IE They both will then use the same profile and therefore the same region).
Perhaps something should be mentioned there?
There is nothing like compatibility between AWS SAM and holy-lambda, but rather AWS CLI and Holy Lambda. HL uses AWS_PROFILE for one of it's internal tasks of generating native configuration for native backend.
Anyway I think I got your point. PR welcome. Thank you for submitting the issue :) All the best!
Describe the bug I got this error while I was going through the tutorial:
I thought:
However, this doesn't ensure that AWS is also using that user, so I swapped to using:
Which I think is better behaviour.
To reproduce Steps to reproduce the behavior:
Use a non
default
user to run holylambda.Expected behavior A minimal as well as a recommended list of permissions / policies to use with an IAM user to use holylambda as well as a note in the tutorial of how to not use the
default
user.