-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Right now if json file doesn't exists. It will be forbidden. Some clients like Trezo don't like to see errors on their app :)
There's one way to do this..
Use s3's feature of static website hosting for the bucket. Serve all elements through there and set redirection like so
Need to set permissions policy so that access to object not found becomes 404.
predictry2 bucket has been set on s3 as an example. Go to
http://predictry2.s3-website-ap-southeast-1.amazonaws.com/anything and it will go to
http://predictry2.s3-website-ap-southeast-1.amazonaws.com/pubnub.html
Now the problem is this way doesn't have support for https. So for https still have to access directly to s3.
The other way is to use API gateway management from AWS + lambda function to return the rec

