-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] offline mode / local cache #529
Comments
Adding more context to the above: Yes,
For the permissions part: Permissions are used in two cases:
For the calling other resources in your local lambda: This is harder to solve. We would almost need all services locally, in order for this to work offline completely. We are working on solving lambda to lambda (#532 and #508) locally, more details on this soon. This should easy some pain but solving all seem unreasonable. For |
Another thought here, you could also have a setting for the default behavior. Something like |
I'm closing this issue as sam local works as expected without a network connection, eg if all of the functionality is local within SAM cli, it will work. In the case of SAM validate and other cases where we make calls to AWS services, we do require a network connection. Please feel free to re-open if you have further comments. |
As of now (
sam 0.4.0
) some commands such as:sam local invoke
does require a network connection to be functionals. I am aware that this command fetch a new docker instances on each invocation and that behavior can be override with
skip-pull-image
. Furthermore it seems to also require AWS credentials. I was quite surprise by that behavior at first even though I do understand why things are designed that way.However being able to work locally while being offline is a quite common use case (commuting to attend a conference for instance). It might also prevents some users who would want to try lambdas and local development before signing up to AWS.
This issue is quite generic as I don't have much context about the codebase and how it works with AWS IAM under the hood. The main idea is that it would be awesome to use
aws-sam-cli
offline when appropriate.Considering the docker image for instance, if an offline flag is passed as an argument, sam could use the latest one that has been fetched. I don't know if something like this can be done for
sam validate
is doable without being safe in terms of security but the overall behind this issue is to capture the idea to be able to work offline.The text was updated successfully, but these errors were encountered: