I guess it needs this?
This commit is contained in:
parent
f31739a59b
commit
e283e65868
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ func UploadToS3(filePath string) (*s3manager.UploadOutput, error) {
|
||||||
secretAccessKey := os.Getenv("AWS_SECRET_ACCESS_KEY")
|
secretAccessKey := os.Getenv("AWS_SECRET_ACCESS_KEY")
|
||||||
|
|
||||||
sess, err := session.NewSession(&aws.Config{
|
sess, err := session.NewSession(&aws.Config{
|
||||||
|
Region: aws.String("us-west-2"),
|
||||||
Credentials: credentials.NewStaticCredentials(
|
Credentials: credentials.NewStaticCredentials(
|
||||||
accessKeyID,
|
accessKeyID,
|
||||||
secretAccessKey,
|
secretAccessKey,
|
||||||
|
|
Loading…
Add table
Reference in a new issue