-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing to new gcp2 projects and removing old terraform env
- Loading branch information
Showing
6 changed files
with
37 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Put the Google Service Account Keys json files for entur-staging and entur-dev in this folder (serviceAccountKeys). | ||
Put the Google Service Account Keys json files for ent-enturapp-tst and ent-enturapp-dev in this folder (serviceAccountKeys). | ||
|
||
Do NOT check in files (they are by default ignored by git). | ||
|
||
Files must be named | ||
|
||
`entur-<environment>.json` | ||
`<environment>.json` | ||
|
||
for example `entur-staging.json` | ||
for example `ent-enturapp-dev.json` | ||
|
||
For Entur employees, see the following page for more detailed setup instructions: | ||
https://enturas.atlassian.net/wiki/spaces/DK/pages/2704048286/Bff-kafka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { ENVIRONMENT } from '../config.js' | ||
|
||
export const getProjectId = (): string => { | ||
if (ENVIRONMENT === 'nordic-dev') { | ||
return 'ent-clients-nordic-dev' | ||
} else if (ENVIRONMENT === 'terraform') { | ||
return 'ent-selvbet-terraform-dev' | ||
if (ENVIRONMENT === 'staging') { | ||
return 'ent-enturapp-tst' | ||
} else if (ENVIRONMENT === 'beta') { | ||
return 'ent-enturbeta-prd' | ||
} else if (ENVIRONMENT === 'prod') { | ||
return 'entur-prod' | ||
} else { | ||
return `entur-${ENVIRONMENT}` | ||
return 'ent-enturapp-dev' | ||
} | ||
} |