Skip to content

Commit

Permalink
use default region
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Kulke committed Jul 3, 2019
1 parent 4d4aa67 commit 8d9fd2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"encoding/json"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ecs"
"io/ioutil"
Expand Down Expand Up @@ -45,7 +44,9 @@ func main() {
if err != nil {
panic(err)
}
svc := ecs.New(session.New(&aws.Config{}))
svc := ecs.New(session.Must(session.NewSessionWithOptions(session.Options{
SharedConfigState: session.SharedConfigEnable,
})))
status := "DRAINING"
state := &ecs.UpdateContainerInstancesStateInput{
Cluster: &ecsMetadata.Cluster,
Expand Down

0 comments on commit 8d9fd2f

Please sign in to comment.