I tried out image resize functionality using cloud-formation service. when create the stack asked selected our s3 bucket. after creating the stack it gives cloud-front ApiEndpoint But it gave from the root directory of s3 bucket.
for the example : s3 bucket path: https://surathbucket1.s3.ap-south-1.amazonaws.com/png.png
cloud-front path for stack: https://d1njf1ibm6jv3d.cloudfront.net/png.png
I need to create a stack for a specific folder in s3 bucket instead of the root directory.
for the example: s3 bucket path: https://surathbucket1.s3.ap-south-1.amazonaws.com/test/png.png
cloud-front path for stack: https://d1njf1ibm6jv3d.cloudfront.net/png.png
I used this template for creating a stack https://docs.aws.amazon.com/solutions/latest/serverless-image-handler/template.html
anyone know the answer please help me. Thank you
There is no such an object type as folder in S3. There is only an object itself which is prefixed with for example test/. So, in your case, the name of your object should be test/png.png
Check docs this out: https://docs.aws.amazon.com/AmazonS3/latest/user-guide/using-folders.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.