Skip to content

Commit

Permalink
Ensure S3 bucket options are properly propagated (#125)
Browse files Browse the repository at this point in the history
* fix: remove circular ref in S3 bucket construct

This ensures that S3 bucket options are properly propagated!

* chore: add changeset
  • Loading branch information
SkySails authored Mar 17, 2024
1 parent 5a667be commit 48af5d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/blue-carpets-deny.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion packages/constructs/src/constructs/astro-aws-s3-bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit 48af5d1

Please sign in to comment.