Skip to content

Commit

Permalink
Merge branch 'master' into rr-MB-6628-eagerpreload
Browse files Browse the repository at this point in the history
  • Loading branch information
reggieriser committed Feb 10, 2021
2 parents ace8ff6 + 6f4bb19 commit b02a01c
Show file tree
Hide file tree
Showing 24 changed files with 874 additions and 36 deletions.
6 changes: 4 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export AWS_VAULT_KEYCHAIN_NAME=login
# The AWS_PROFILE setting is in the project configuration section
# because now we're working with multiple accounts.

export AWS_PROFILE=transcom-ppp

#############################
# Load Secrets from Chamber #
#############################
Expand Down Expand Up @@ -180,11 +182,11 @@ export TZ="UTC"
# Setting region and profile conditionally while we migrate from com to govcloud.
if [ "$STORAGE_BACKEND" == "s3" ]; then
export AWS_S3_BUCKET_NAME="transcom-gov-dev-app-devlocal-us-gov-west-1"
export AWS_PROFILE=transcom-gov-dev
export AWS_S3_REGION="us-gov-west-1"
export AWS_DEFAULT_REGION="us-gov-west-1"
export AWS_PROFILE=transcom-gov-dev
fi

export AWS_DEFAULT_REGION="us-gov-west-1"
export AWS_S3_KEY_NAMESPACE=$USER
export AWS_SES_DOMAIN="devlocal.dp3.us"
export AWS_SES_REGION="us-gov-west-1"
Expand Down
7 changes: 3 additions & 4 deletions cmd/milmove/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"strings"
"time"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
awssession "github.com/aws/aws-sdk-go/aws/session"
Expand Down Expand Up @@ -192,10 +193,8 @@ func migrateFunction(cmd *cobra.Command, args []string) error {

var session *awssession.Session
if v.GetBool(cli.DbIamFlag) || s3Migrations {
verbose := cli.LogLevelIsDebug(v)
c, errorConfig := cli.GetAWSConfig(v, verbose)
if errorConfig != nil {
return errors.Wrap(errorConfig, "error creating aws config")
c := &aws.Config{
Region: aws.String(v.GetString(cli.AWSRegionFlag)),
}
s, errorSession := awssession.NewSession(c)
if errorSession != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/99designs/keyring v1.1.6
github.com/alexedwards/scs/redisstore v0.0.0-20200225172727-3308e1066830
github.com/alexedwards/scs/v2 v2.4.0
github.com/aws/aws-sdk-go v1.37.6
github.com/aws/aws-sdk-go v1.37.8
github.com/benbjohnson/clock v1.1.0
github.com/codegangsta/envy v0.0.0-20141216192214-4b78388c8ce4 // indirect
github.com/codegangsta/gin v0.0.0-20171026143024-cafe2ce98974
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:o
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg=
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
github.com/aws/aws-sdk-go v1.37.6 h1:SWYjRvyZw6DJc3pkZfRWVRD/5wiTDuwOkyb89AAkEBY=
github.com/aws/aws-sdk-go v1.37.6/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.37.8 h1:9kywcbuz6vQuTf+FD+U7FshafrHzmqUCjgAEiLuIJ8U=
github.com/aws/aws-sdk-go v1.37.8/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
Expand Down
12 changes: 12 additions & 0 deletions pkg/gen/adminapi/adminoperations/mymove_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b02a01c

Please sign in to comment.