- go version go1.13.3 darwin/amd64
$ pip install awscli
$ pip install aws-sam-cli
$ aws configure --profile <profile>
$ sam init --runtime go --name sam-test
$ cd sam-test
$ export AWS_PROFILE=<profile>
$ go mod init
$ make deps
$ go test ./hello-world
ok github.com/medpeer-dev/ri-utilization-plotter/hello-world 0.381s
$ make build
$ sam local start-api
Mounting HelloWorldFunction at http://127.0.0.1:3000/hello [GET]
...
open other terminal:
$ curl http://127.0.0.1:3000/hello
Hello, 221.117.173.167
Thanks.