In a sample AWS serverless architecture, there would be S3 hosting a static website, calling API gateway endpoints via javascript, which in turn invokes Lambda functions.
How to authenticate against the AWS API gateway without making the credentials public by storing them in publicly accessible javascript source served from S3?
(not asking about backend credentials, these are easily stored (and encyprted) in environment variables accessible to the Lambda functions)