Bucket component lets you add an AWS S3 Bucket to your app.
Constructor
sst.config.ts
Parameters
access
Enable public read access for all files in the bucket.
cors
Configure CORS (Cross-origin resource sharing) settings.Disable CORS:
versioning
Enable versioning to store multiple versions of each object.
lifecycle
Configure lifecycle rules to automatically delete or archive objects.
Properties
name
arn
domain
nodes
Methods
notify
SDK
Access bucket properties in your function code:src/lambda.ts
Examples
Enable public access
sst.config.ts
Add notifications
sst.config.ts
Link to a function
sst.config.ts