From ce30b6c22a5bd2671470777946ad15cee005c160 Mon Sep 17 00:00:00 2001 From: Choko Date: Wed, 23 Oct 2024 11:24:36 +0900 Subject: [PATCH] Use curiostack location for run service (#12) --- src/curiostack/index.ts | 4 ++++ src/curiostack/service.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/curiostack/index.ts b/src/curiostack/index.ts index 8b03ba9..9219ce0 100644 --- a/src/curiostack/index.ts +++ b/src/curiostack/index.ts @@ -43,6 +43,9 @@ export class CurioStack extends Construct { /** The project provisioned by CurioStack. */ public readonly project: string; + /** The default location to deploy provisioned resources to. */ + public readonly location: string; + /** The docker repository created for pushing application images to. */ public readonly dockerRepository: ArtifactRegistryRepository; @@ -59,6 +62,7 @@ export class CurioStack extends Construct { super(scope, "curiostack"); this.project = config.project; + this.location = config.location; const apps = new Apps(this, config); this.dockerRepository = apps.dockerRepository; diff --git a/src/curiostack/service.ts b/src/curiostack/service.ts index 0a042a4..49bb40f 100644 --- a/src/curiostack/service.ts +++ b/src/curiostack/service.ts @@ -158,7 +158,7 @@ export class CurioStackService extends Construct { this.run = new GoogleCloudRunV2Service(this, "service", { name: config.name, - location: "us-central1", + location: config.curiostack.location, customAudiences: [config.name], ingress, template: {