Skip to content

Commit

Permalink
Use curiostack location for run service (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
chokoswitch authored Oct 23, 2024
1 parent 21c6f9f commit ce30b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/curiostack/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/curiostack/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ce30b6c

Please sign in to comment.