From 514c5a24751de86e0894f5e1eea8b4473b9e3bc9 Mon Sep 17 00:00:00 2001 From: Shai Ber Date: Thu, 31 Oct 2024 20:34:50 +0200 Subject: [PATCH] fix build errors --- packages/@winglang/platform-awscdk/src/website.ts | 2 +- packages/@winglang/sdk/src/target-sim/bucket.ts | 2 +- packages/@winglang/sdk/src/target-tf-aws/website.ts | 2 +- packages/@winglang/sdk/src/target-tf-azure/bucket.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@winglang/platform-awscdk/src/website.ts b/packages/@winglang/platform-awscdk/src/website.ts index 6bf632c2404..d8b3fc07ed0 100644 --- a/packages/@winglang/platform-awscdk/src/website.ts +++ b/packages/@winglang/platform-awscdk/src/website.ts @@ -24,7 +24,7 @@ export class Website extends cloud.Website implements IAwsWebsite { constructor(scope: Construct, id: string, props: cloud.WebsiteProps) { super(scope, id, props); - this.bucket = createEncryptedBucket(this, false, "WebsiteBucket"); + this.bucket = createEncryptedBucket(this, false, false, "WebsiteBucket"); new BucketDeployment(this, "BucketWebsiteConfiguration", { destinationBucket: this.bucket, diff --git a/packages/@winglang/sdk/src/target-sim/bucket.ts b/packages/@winglang/sdk/src/target-sim/bucket.ts index 06575559595..6b44b70fc49 100644 --- a/packages/@winglang/sdk/src/target-sim/bucket.ts +++ b/packages/@winglang/sdk/src/target-sim/bucket.ts @@ -131,7 +131,7 @@ export class Bucket extends cloud.Bucket implements ISimulatorResource { public toSimulator(): ToSimulatorOutput { const props: BucketSchema = { public: this.public, - forceDeploy: this.forceDestroy, + forceDestroy: this.forceDestroy, initialObjects: this.initialObjects, topics: this.convertTopicsToHandles(), }; diff --git a/packages/@winglang/sdk/src/target-tf-aws/website.ts b/packages/@winglang/sdk/src/target-tf-aws/website.ts index bb8d7258288..1ee80fc3bc8 100644 --- a/packages/@winglang/sdk/src/target-tf-aws/website.ts +++ b/packages/@winglang/sdk/src/target-tf-aws/website.ts @@ -34,7 +34,7 @@ export class Website extends cloud.Website implements aws.IAwsWebsite { constructor(scope: Construct, id: string, props: aws.AwsWebsiteProps) { super(scope, id, props); - this.bucket = createEncryptedBucket(this, false, "WebsiteBucket"); + this.bucket = createEncryptedBucket(this, false, false,"WebsiteBucket"); new S3BucketWebsiteConfiguration(this, "BucketWebsiteConfiguration", { bucket: this.bucket.bucket, diff --git a/packages/@winglang/sdk/src/target-tf-azure/bucket.ts b/packages/@winglang/sdk/src/target-tf-azure/bucket.ts index 0713968d76e..253f481197c 100644 --- a/packages/@winglang/sdk/src/target-tf-azure/bucket.ts +++ b/packages/@winglang/sdk/src/target-tf-azure/bucket.ts @@ -95,7 +95,7 @@ export class Bucket extends cloud.Bucket { name: storageContainerName, storageAccountName: this.storageAccount.name, containerAccessType: this.public ? "blob" : "private", - rm_delete: this.forceDestroy, + rmDelete: this.forceDestroy, }); }