robocar-tools/pkg/awsutils/awsutils.go

19 lines
309 B
Go
Raw Normal View History

2021-11-24 18:10:52 +00:00
package awsutils
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"log"
)
func MustLoadConfig() aws.Config {
c, err := config.LoadDefaultConfig(context.Background())
if err != nil {
log.Panicf("unable to load aws default config: %v", err)
}
return c
}