diff --git a/infra/src/cdk-app.ts b/infra/src/cdk-app.ts index 0c198550e..52ae061ad 100644 --- a/infra/src/cdk-app.ts +++ b/infra/src/cdk-app.ts @@ -42,8 +42,9 @@ class CdkApp extends cdk.App { const vardaRekisterointiDatabaseStack = new VardRekisterointiDatabaseStack(this, "VardaRekisterointiDatabase", vpc, ecsStack.cluster, bastion, alarmTopic, stackProps); const organisaatioDatabaseStack = new OrganisaatioDatabaseStack(this, "Database", vpc, ecsStack.cluster, bastion, alarmTopic, stackProps); createHealthCheckStacks(this, alarmsToSlackLambda, [ - { name: "Organisaatio", url: new URL(`https://${config.virkailijaHost}/organisaatio-service/actuator/health`) }, - { name: "VardaRekisterointi", url: new URL(`https://${config.virkailijaHost}/varda-rekisterointi/actuator/health`) }, + { name: "Organisaatio", url: new URL(`https://virkailija.${config.opintopolkuHost}/organisaatio-service/actuator/health`) }, + { name: "VardaRekisterointi", url: new URL(`https://virkailija.${config.opintopolkuHost}/varda-rekisterointi/actuator/health`) }, + { name: "JotpaRekisterointi", url: new URL(`https://rekisterointi.${config.opintopolkuHost}/actuator/health`) }, ]) new VardaRekisterointiApplicationStack(this, "VardaRekisterointiApplication", vpc, hostedZone, { database: vardaRekisterointiDatabaseStack.database, diff --git a/infra/src/config.ts b/infra/src/config.ts index ddf0fda0f..4d0b83aaa 100644 --- a/infra/src/config.ts +++ b/infra/src/config.ts @@ -2,7 +2,7 @@ const environments = ["hahtuva", "dev", "qa", "prod"] as const; type EnvironmentName = (typeof environments)[number]; const defaultConfig = { - virkailijaHost: "", + opintopolkuHost: "", minCapacity: 1, maxCapacity: 1, vardaRekisterointiCapacity: 0, @@ -32,24 +32,24 @@ export function getConfig(): Config { export const hahtuva: Config = { ...defaultConfig, - virkailijaHost: "virkailija.hahtuvaopintopolku.fi", + opintopolkuHost: "hahtuvaopintopolku.fi", vardaRekisterointiCapacity: 1, }; export const dev: Config = { ...defaultConfig, - virkailijaHost: "virkailija.untuvaopintopolku.fi", + opintopolkuHost: "untuvaopintopolku.fi", vardaRekisterointiCapacity: 1, }; export const qa: Config = { ...defaultConfig, - virkailijaHost: "virkailija.testiopintopolku.fi", + opintopolkuHost: "testiopintopolku.fi", vardaRekisterointiCapacity: 1, }; export const prod: Config = { ...defaultConfig, - virkailijaHost: "virkailija.opintopolku.fi", + opintopolkuHost: "opintopolku.fi", vardaRekisterointiCapacity: 0, };