Skip to content

Commit b2d4861

Browse files
Create apigw-to-access-s3-folders
1 parent be903e3 commit b2d4861

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

apigw-to-access-s3-folders

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"title": "API Gateway - Workaround for directly reading Files, Folders, and Sub-folders in AWS S3",
3+
"description": "Read files in Folders & Subfolder of S3 bucket using API Gateway",
4+
"language": "Python",
5+
"level": "200",
6+
"framework": "YAML",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"The context and purpose of this workaround documentation is to provide a step-by-step guide and explanation for a specific approach to directly read files, folders, and sub-folders in an AWS S3 bucket using AWS API Gateway.",
11+
"This would be helpful in reducing the latency of API requests, use API Gateway without a Lambda function to read Amazon S3 bucket resources. This method can also reduce costs and make your system easier to maintain and troubleshoot",
12+
"Please make sure the API Gateway and S3 bucket are deployed in the same region."
13+
]
14+
},
15+
"gitHub": {
16+
"template": {
17+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-to-access-s3-folders",
18+
"templateURL": "serverless-patterns/apigw-to-access-s3-folders",
19+
"projectFolder": "apigw-to-access-s3-folders",
20+
"templateFile": "apigw-to-access-s3-folders/template.yaml"
21+
}
22+
},
23+
"resources": {
24+
"bullets": [
25+
{
26+
"text": "Create a REST API as an Amazon S3 proxy",
27+
"link": "https://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-s3.html"
28+
}
29+
]
30+
},
31+
"deploy": {
32+
"text": [
33+
"sam deploy"
34+
]
35+
},
36+
"testing": {
37+
"text": [
38+
"Once the application is deployed, retrieve the API URL provided as output and open it in a browser page.",
39+
"Replace the folder and item place holder with S3 bucket name and path to your file",
40+
"Example: https://apigatewayid.execute-api.us-east-1.amazonaws.com/testbucket/folder1/folder2/index.html"
41+
]
42+
},
43+
"cleanup": {
44+
"text": [
45+
"Delete the stack: <code>cdk delete</code>."
46+
]
47+
},
48+
"authors": [
49+
{
50+
"name": "Vamsi Pulikonda",
51+
"image": "https://raw.githubusercontent.com/vamsipulikonda/my-photo/main/vamsi-photo.jpg",
52+
"bio": "I am a cloud computing enthusiast working as a Cloud Engineer at Amazon Web Services.",
53+
"Linkedin": "https://www.linkedin.com/in/vamsipulikonda/"
54+
}
55+
]
56+
}

0 commit comments

Comments
 (0)