go get github.com/go-redis/redis/v8
sam build
. Then run the
command sam local start-api
. You can check your API locally on
http://127.0.0.1:3000/hello
sam deploy --guided
.
Enter a stack name and pick your region. After confirming changes, the deployment
should begin. The command will output API Gateway endpoint URL, check the API in
your browser. You can also check your deployment on your AWS console. You will see
your function has been created.