Skip to content

Commit 65f81c7

Browse files
author
eversC
committed
Set GCP env var defaults
1 parent da0da7d commit 65f81c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/location/locations.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ var (
4242
defaultsMap = map[string]envVarDefaults{
4343
"aws": {
4444
keyEnvVar: "AWS_SECRET_ACCESS_KEY",
45-
keyIDEnvVar: "AWS_ACCESS_KEY_ID"}}
45+
keyIDEnvVar: "AWS_ACCESS_KEY_ID"},
46+
"gcp": {
47+
keyEnvVar: "GCLOUD_SERVICE_KEY",
48+
keyIDEnvVar: ""},
49+
}
4650
)
4751

4852
func getKeyForFileBasedLocation(keyWrapper KeyWrapper) (key string, err error) {

0 commit comments

Comments
 (0)