```_, err = s3.NewBucketObject(ctx, "website", &s3...
# general
Copy code
_, err = s3.NewBucketObject(ctx, "website", &s3.BucketObjectArgs{
    Bucket:      bucket.ID(),
    Source:      pulumi.NewFileArchive("./website"),
    ContentType: pulumi.String("text/html"),
    Acl:         pulumi.String("public-read"),
}, pulumi.DependsOn([]pulumi.Resource{
if err != nil {
    return err
hey guys! i've been trying to deploy a static website in an s3 bucket wth golang. when i run pulumi up, and click on my bucket i see a single file "website". what is the right way to do this with pulumi? since the static webpage has other files
You need an object for each file (each file is a separate resource). Your program can crawl that directory and add a resource (BucketObject) for each file.
You can even write a component that will handle a folder: https://www.pulumi.com/registry/packages/aws/how-to-guides/s3-folder-component/
thank you!