Skip to main content

S3 Bucket

This example demonstrates how to create an S3 bucket using the composite S3Bucket component. It builds upon the basic bucket example, integrating functionality into a higher-level abstraction.

import { Shape } from '@dinghy/base-components'
import { AwsProvider, S3Backend } from '@dinghy/tf-aws'
import { S3Bucket } from '@dinghy/tf-aws/s3Bucket'

export default function Stack() {
return (
<Shape _title='S3 Bucket Composite Component Example'>
<AwsProvider region='eu-west-1'>
<S3Backend />
<S3Bucket
bucket='my-demo-bucket-with-versioning'
versioningEnabled
/>
</AwsProvider>
</Shape>
)
}