Skip to content

Instantly share code, notes, and snippets.

@SlootSantos
Last active June 30, 2020 17:35
Show Gist options
  • Select an option

  • Save SlootSantos/0509e35c70967e45bef1d4b84adb3be3 to your computer and use it in GitHub Desktop.

Select an option

Save SlootSantos/0509e35c70967e45bef1d4b84adb3be3 to your computer and use it in GitHub Desktop.
package main
import (
"log"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
)
func main() {
log.Println("Hello Lambda")
awsSess := getAWSSession()
}
func getAWSSession() *session.Session {
s, err := session.NewSession(&aws.Config{
Region: aws.String("us-east-1"),
})
if err != nil {
panic("Did you pass the credentials?")
}
return s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment