As of now (sam 0.4.0) some commands such as:
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.
As of now (
sam 0.4.0) some commands such as:sam local invokedoes 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-clioffline 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 validateis 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.