Whenever you have a string which represents a string variable assignment, the Right Way™a safe and simple way to perform that assignment is declare (and Using More Quotes™Using More Quotes™):
$ xxx='website_endpoint="my-site.s3-website-us-east-1.amazonaws.com"'
$ declare "$xxx"
$ echo "$website_endpoint"
"my-site.s3-website-us-east-1.amazonaws.com"