aws-amplify / aws-amplify/amplify-hosting

Failed deployment on manual deploy of a S3 hosted zipfile with a pre-signed URL

Open
#3,500 7 comments 0 reactions 1 assignee Claimed by @Jay2113 View on GitHub
bug manual-deploy
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-hosting/blob/master/FAQ.md).
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-hosting/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-hosting/blob/master/CONTRIBUTING.md).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

### App Id

d23wz3kmpx47y2

### AWS Region

eu-west-2

### Amplify Hosting feature

Manual deploys

### Describe the bug

I'm trying to deploy a SSG website using a pre-signed URL pointing to a zipfile on S3 containing all the assets. The deployment fails. If I manually upload the same zipfile, it works.

### Expected behavior

The deployment not to fail. The website to be visible on the environemnt's domain.

### Reproduction steps

1. static site generate with NextJS
2. zip all files
3. upload to S3 (@aws-sdk/client-s3)
4. create a pre-signed URL to the Object on S3 (@aws-sdk/s3-request-presigner)
5. start Amplify deployment providing above pre-signed URL as `sourceUrl` (@aws-sdk/client-amplify)

### Build Settings

```yaml
not applicable, it's a static site, html/css/js only.
```

### Log output

```
...
2023-05-26T19:49:25 [INFO]: Deploying _next/data/-IkUDSVi7373OKsYIhXHz/film/colette-2019.json
2023-05-26T19:49:25 [INFO]: Deploying _next/data/-IkUDSVi7373OKsYIhXHz/film/eight-below-2006.json

Deploy failed to complete successfully.

```

### Additional information

Thanks for your help!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.