Skip to content

Commit

Permalink
Merge pull request #45 from Optum/bug/deploy-region-not-set
Browse files Browse the repository at this point in the history
Setting aws session region from config
  • Loading branch information
eschwartz authored Dec 10, 2019
2 parents 44c29e1 + 650479b commit abfa706
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/util/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (t *APITokenProvider) IsExpired() bool {

type APITokenValue struct {
AccessKeyID string `json:"accessKeyId"`
SecretAccessKey string
SessionToken string
Expiration int64
SecretAccessKey string `json:"secretAccessKey"`
SessionToken string `json:"sessionToken"`
Expiration int64 `json:"expireTime"`
}
1 change: 1 addition & 0 deletions internal/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func New(config *configs.Root, configFile string, observation *observ.Observatio
if err != nil {
log.Fatalf("Failed to initialize AWS Session: %s", err)
}
awsSession.Config.Region = config.Region

var apiClient APIer
if config.API.Host != nil && config.API.BasePath != nil {
Expand Down

0 comments on commit abfa706

Please sign in to comment.