From e3061f04b1b6fc302e7332a550267785f7d47563 Mon Sep 17 00:00:00 2001 From: Choko Date: Fri, 26 Jul 2024 17:08:44 +0900 Subject: [PATCH] Accept provider interface for google beta to avoid version lock (#4) --- src/gcp-project/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gcp-project/index.ts b/src/gcp-project/index.ts index 317dcf1..9ef8859 100644 --- a/src/gcp-project/index.ts +++ b/src/gcp-project/index.ts @@ -12,7 +12,11 @@ import { ServiceAccount } from "@cdktf/provider-google/lib/service-account"; import { ServiceAccountIamMember } from "@cdktf/provider-google/lib/service-account-iam-member"; import { StorageBucket } from "@cdktf/provider-google/lib/storage-bucket"; import { StorageBucketIamMember } from "@cdktf/provider-google/lib/storage-bucket-iam-member"; -import { type ITerraformDependable, TerraformOutput } from "cdktf"; +import { + type ITerraformDependable, + TerraformOutput, + type TerraformProvider, +} from "cdktf"; import { Construct } from "constructs"; /** Configuration of a {@link GcpProject}. */ @@ -52,7 +56,7 @@ export interface GcpProjectConfig { * The {@link GoogleBetaProvider} to use for enabling beta features in the * project. */ - googleBeta: GoogleBetaProvider; + googleBeta: TerraformProvider; /** * Any dependencies that should complete before project creation.