amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

asp.net core 6 app - Access Denied

Open paresh-bhatewra opened this issue 3 years ago • 3 comments

Before opening, please confirm:

App Id

d34fcwfeedlxri

Region

us-east-1

Amplify Hosting feature

Access control

Describe the bug

When I open the app url https://prod.d34fcwfeedlxri.amplifyapp.com, it gives access denied error.

Expected behavior

it should open the app.

Reproduction steps

  1. I uploaded a zip file containing build output of asp.net core 6 site.
  2. Deployment succeeded.
  3. Got this url - https://prod.d34fcwfeedlxri.amplifyapp.com/
  4. When I go to this irl, it gives me access denied error
AccessDenied Access Denied M0CF5RXCMMNDJFK8 MVAVlpF6umLRgKepze1oY313yHucX7IlXkwHWrzOc8b2VhI8OQNq0YE04/el0KHWu3cJ7twyOBc=

Build Settings

No response

Additional information

No response

paresh-bhatewra avatar Jul 23 '22 12:07 paresh-bhatewra

Hi @paresh-bhatewra 👋🏽 it looks like you removed your app so I'm not able to further investigate. Did you navigate into the build output folder and zip the contents? If you just zip the folder itself you can run into this error. Please see our Manual Deploy documentation for more details on this error: https://docs.aws.amazon.com/amplify/latest/userguide/manual-deploys.html

ghost avatar Jul 25 '22 17:07 ghost

Hey,

I had gone through that article before raising the ticket, and I confirm that I created the zip in correct way as mentioned. I have again deployed the same zip with same error.

https://prod.d2ethzgr24y9e0.amplifyapp.com//

Let me know what I am doing wrong.

paresh-bhatewra avatar Jul 26 '22 04:07 paresh-bhatewra

@hloriana - any update?

paresh-bhatewra avatar Jul 29 '22 19:07 paresh-bhatewra

@paresh-bhatewra 👋 , thanks for reaching out. The 404 error can occur if the index.html file is not present or is nested under a directory in the zip file. To get started with deploying .NET apps on Amplify Hosting, refer to this blog post: https://aws.amazon.com/blogs/devops/deploy-net-blazor-webassembly-application-to-aws-amplify/.

Jay2113 avatar Mar 06 '24 23:03 Jay2113

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar Mar 06 '24 23:03 github-actions[bot]

This issue has been automatically locked.

github-actions[bot] avatar Mar 07 '24 01:03 github-actions[bot]