When we create a preSigned url using the java sdk , The url contains the bucket name "https://bucketName.s3.region.amazonaws.com/objectkey?X-Amz-Security-Token=********"
How ever we would like it be our domain name instead of exposing the buckname and on amazonaws.com like : "https://mydomain.com/objectkey?X-Amz-Security-Token=********"
What is the best way to achieve this ?
AWS-User-5066072
asked 4 years ago2.3K views
Maybe AWS S3 + CloudFront + Custom Domain/SSL + Signed URL instead?
RoB
answered 4 years ago
Thanks for reply RoB. When we use cloud front distribution we are supposed to use signed Url / Signed Cookie from cloud front instead of preSigned url from S3. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html Which can be used when we just get objects but not upload objects.
You are not logged in. Log in to post an answer.
A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.
Dinesh Saini
asked 2 years ago
Roi
asked 3 years ago
rePost-User-0269815
rePost-User-1989498
asked 4 years ago
Tyler
published a year ago
Thanks for reply RoB. When we use cloud front distribution we are supposed to use signed Url / Signed Cookie from cloud front instead of preSigned url from S3. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html Which can be used when we just get objects but not upload objects.