diff --git a/.changeset/blue-carpets-deny.md b/.changeset/blue-carpets-deny.md new file mode 100644 index 0000000..d337b2b --- /dev/null +++ b/.changeset/blue-carpets-deny.md @@ -0,0 +1,5 @@ +--- +"@astro-aws/constructs": patch +--- + +Fixed circular reference in S3 bucket construct which prevented configuration of the S3 part of the infrastructure. diff --git a/packages/constructs/src/constructs/astro-aws-s3-bucket.ts b/packages/constructs/src/constructs/astro-aws-s3-bucket.ts index 6ea4bac..4538e5a 100644 --- a/packages/constructs/src/constructs/astro-aws-s3-bucket.ts +++ b/packages/constructs/src/constructs/astro-aws-s3-bucket.ts @@ -44,7 +44,7 @@ class AstroAWSS3Bucket extends AstroAWSBaseConstruct< blockPublicAccess: BlockPublicAccess.BLOCK_ALL, encryption: BucketEncryption.S3_MANAGED, enforceSSL: true, - ...this.cdk.s3Bucket, + ...props.cdk?.s3Bucket, }) this.#originAccessIdentity = new OriginAccessIdentity(this, "S3BucketOAI", {