/awsconfig

Get aws config from IAM Role or credentials file

Primary LanguageGoMIT LicenseMIT

ushios/awsconfig

Get aws config from IAMRole or credentials file.

Build Status Coverage Status

Installation

$ go get github.com/ushios/awsconfig

Documentation

GoDoc

Samples

Get s3 client

import (
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/s3"
)

s3client := s3.New(session.New(awsconfig.Config(nil)))