Skip to content

Commit

Permalink
atc: don't use $AWS_REGION var
Browse files Browse the repository at this point in the history
this effectively made it enable both credential managers, with at least
one of them partially instantiated. instead let's just have both use
their explicit CONCOURSE_* env var form, so it's clear which one is
being configured.

fixes #2191
  • Loading branch information
vito committed Nov 7, 2018
1 parent 3bc2c8e commit 5d30023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atc/creds/secretsmanager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Manager struct {
AwsAccessKeyID string `long:"access-key" description:"AWS Access key ID"`
AwsSecretAccessKey string `long:"secret-key" description:"AWS Secret Access Key"`
AwsSessionToken string `long:"session-token" description:"AWS Session Token"`
AwsRegion string `long:"region" description:"AWS region to send requests to" env:"AWS_REGION"`
AwsRegion string `long:"region" description:"AWS region to send requests to"`
PipelineSecretTemplate string `long:"pipeline-secret-template" description:"AWS Secrets Manager secret identifier template used for pipeline specific parameter" default:"/concourse/{{.Team}}/{{.Pipeline}}/{{.Secret}}"`
TeamSecretTemplate string `long:"team-secret-template" description:"AWS Secrets Manager secret identifier template used for team specific parameter" default:"/concourse/{{.Team}}/{{.Secret}}"`
SecretManager *SecretsManager
Expand Down
2 changes: 1 addition & 1 deletion atc/creds/ssm/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type SsmManager struct {
AwsAccessKeyID string `long:"access-key" description:"AWS Access key ID"`
AwsSecretAccessKey string `long:"secret-key" description:"AWS Secret Access Key"`
AwsSessionToken string `long:"session-token" description:"AWS Session Token"`
AwsRegion string `long:"region" description:"AWS region to send requests to" env:"AWS_REGION"`
AwsRegion string `long:"region" description:"AWS region to send requests to"`
PipelineSecretTemplate string `long:"pipeline-secret-template" description:"AWS SSM parameter name template used for pipeline specific parameter" default:"/concourse/{{.Team}}/{{.Pipeline}}/{{.Secret}}"`
TeamSecretTemplate string `long:"team-secret-template" description:"AWS SSM parameter name template used for team specific parameter" default:"/concourse/{{.Team}}/{{.Secret}}"`
Ssm *Ssm
Expand Down

0 comments on commit 5d30023

Please sign in to comment.