Issue : We have a HTTPS:443 listener-rule configured, where the condition and action is set as follows:
Condition: if the path matches '/.well-known/*'Action: Redirect to HTTPS://example-bucket123.s3.us-east-2.amazonaws.com:443/#{path}?#{query}
In the bucket there exist a asset.json file that a developer needs as an output.When the URL (example : trains.toys.com/.well-known/asset.json) is entered we do get the contents of the .json as output, but the URL displayed is now a different URL (i.e. s3 bucket url mentioned above.). In more technical terms it got redirected to another url.
My end goal is to get the contents of the .json outputted. But we are looking to ensure that the URL remains the same.
How can I achieve this? Is there a way to make this work by modifying the listener rules in AWS LoadBalancer? Or is there a completely different solution that can help us here?