Skip to content

Commit

Permalink
OPHYK-216 Add also Jotpa rekisteröinti to healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
rce committed Jan 7, 2025
1 parent 61fc9d9 commit d64edae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions infra/src/cdk-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 5 additions & 5 deletions infra/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
};

0 comments on commit d64edae

Please sign in to comment.