This project was made for GO and AWS Lambda study purposes.
It consumes ViaCep service to search for a given CEP (Brazilian Zip code) and returns the result or one of the errors listed below.
ViaCep: https://viacep.com.br
- AWS Lambda GO package - github.com/aws/aws-lambda-go/lambda
go get github.com/aws/aws-lambda-go/lambda
- AWS Lambda Deployment Package - github.com/aws/aws-lambda-go/cmd/build-lambda-zip
go get github.com/aws/aws-lambda-go/cmd/build-lambda-zip
- Install AWS Lambda GO package
- Install AWS Lambda Deployment Package
- Execute build-aws-zip.bat on PowerShell or CMD
- Upload the zip file generated in /target folder to your AWS account
- Just have fun =)
- ConsultaIndisponivel - If the ViaCep's service is unavailable for any reason
- CepNaoEncontrado - If the given CEP is not found
- ErroInesperado - If the ViaCep's result could not be parsed for any reason
go test