https://github.com/clok/awssession
Simple library to provide an AWS session in go
https://github.com/clok/awssession
aws awssession go golang golang-library
Last synced: 5 months ago
JSON representation
Simple library to provide an AWS session in go
- Host: GitHub
- URL: https://github.com/clok/awssession
- Owner: clok
- License: mit
- Created: 2020-07-20T19:07:57.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2026-02-04T18:46:20.000Z (5 months ago)
- Last Synced: 2026-02-05T06:02:07.066Z (5 months ago)
- Topics: aws, awssession, go, golang, golang-library
- Language: Go
- Homepage: https://pkg.go.dev/github.com/clok/awssession?tab=overview
- Size: 84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# awssession - Super simple AWS session generator.
[](https://goreportcard.com/report/clok/awssession) [](https://coveralls.io/github/clok/awssession?branch=master) [](https://pkg.go.dev/github.com/clok/awssession?tab=overview)
### Example
Simple example of an S3 Get.
```go
package main
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
"github.com/clok/awssession"
"os"
)
func main() {
var dstFile *os.File
dstFile, _ = os.Create(dest)
defer dstFile.Close()
sess, _ := awssession.New()
downloader := s3manager.NewDownloader(sess)
_, _ = downloader.Download(dstFile, &s3.GetObjectInput{
Bucket: aws.String("s3://aBucket"),
Key: aws.String("an/object.json"),
})
return
}
```
## Development
1. Fork the [clok/awssession](https://github.com/clok/awssession) repo
1. Use `go >= 1.16`
1. Branch & Code
1. Run linters :broom: `golangci-lint run`
- The project uses [golangci-lint](https://golangci-lint.run/usage/install/#local-installation)
1. Commit with a Conventional Commit
1. Open a PR