Skip to content

Commit

Permalink
Merge pull request #154 from trussworks/barry-support-more-than-us-ea…
Browse files Browse the repository at this point in the history
…st-1

Support more than US-East-1, since this exists in GovCloud regions.
  • Loading branch information
esacteksab authored Oct 9, 2020
2 parents 54bae3b + 43a588e commit cd37c77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SHELL = /bin/sh
VERSION = 2.9
VERSION = 3.0

all: install

Expand Down
3 changes: 2 additions & 1 deletion cmd/trusted-advisor-refresh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
type Options struct {
Profile string `short:"p" long:"profile" description:"The AWS profile to use." required:"false" env:"AWS_PROFILE"`
Lambda bool `short:"l" long:"lambda" description:"Run as an AWS lambda function." required:"false" env:"LAMBDA"`
Region string `long:"region" description:"The AWS region to use." required:"false" env:"AWS_REGION"`
}

var options Options
Expand All @@ -29,7 +30,7 @@ func makeSupportClient(region, profile string) *support.Support {

func triggerRefresh() {
// Trusted Advisor only works in us-east-1
supportClient := makeSupportClient("us-east-1", options.Profile)
supportClient := makeSupportClient(options.Region, options.Profile)

tar := tarefresh.TrustedAdvisorRefresh{
Logger: logger,
Expand Down

0 comments on commit cd37c77

Please sign in to comment.