pulumi / pulumi-aws-static-website

Apache License 2.0
11 stars 5 forks source link

Error uploading object to S3 bucket for React projects #34

Closed Meloyg closed 12 months ago

Meloyg commented 1 year ago

What happened?

Failed to upload the objects from the react build folder to S3 when run pulumi up

Example

Code is

import * as pulumi from "@pulumi/pulumi";
import * as staticwebsite from "@pulumi/aws-static-website";

const site = new staticwebsite.Website("company-pacific", {
    sitePath: "build",
    indexDoc: "index.html",
    error404: "index.html"
});

export const url = site.websiteURL;

File structure: image

Output of pulumi about

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).