1import { GcpEnvironment } from "@/GCP/Environment";
2import * as Effect from "effect/Effect";
3import { MinimumLogLevel } from "effect/References";
4
5export const logLevel = Effect.provideService(
6 MinimumLogLevel,
7 process.env.DEBUG ? "Debug" : "Info",
8);
9
10// Tag templates moved to Dataplex; projects without legacy Data Catalog
11// access get DataCatalogDeprecated ("Project … is not allowed to perform read operations
12// due to Data Catalog deprecation."). Set GCP_TEST_DATACATALOG_TAG_TEMPLATES=1
13// on a project that still has tag-template access.
14export const runTagTemplateLifecycle =
15 !!process.env.GCP_TEST_DATACATALOG_TAG_TEMPLATES;
16
17export const currentProject = GcpEnvironment.current.pipe(
18 Effect.map((env) => env.project),
19);
20export const location = "us-central1";