Before running make, ensure you have set your correct AWS_PROFILE!!
Check you environment settings:
export AWS_PROFILE=purple4
set | grep AWS
make env-echo
Set your env variables, e.g.
export AWS_PROFILE=yellow5
export STAGE=yellow
make build
To deploy, ensure you set your AWS profile to the environment you wish to deploy to. For example, for yellow
export AWS_PROFILE=yellow5
make STAGE=yellow deploy
export AWS_PROFILE=ab-dev
make STAGE=dev invoke
export AWS_PROFILE=purple4
make STAGE=purple remove
This project was initially created via
sls create --template aws-go --path serverless-go-poc
ref: https://www.serverless.com/framework/docs/providers/aws/examples/hello-world/go/