19 lines
309 B
Go
19 lines
309 B
Go
|
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
|
||
|
}
|