Project

General

Profile

S3 » History » Version 2

prin methirattanasophon, 03/17/2026 08:41 AM

1 1 karnake ruengchaicharnkij
# S3
2 2 prin methirattanasophon
3
AWS S3 Storage Configuration: Frontend Applications
4
This document outlines the AWS S3 storage architecture and usage guidelines for frontend applications. S3 buckets are utilized to centrally manage environment-specific variables (DEV, UAT, PROD) and to host static utility files, including JSON constants and application assets.
5
6
## <u> **1. Environment Variables (Private Access)** </u>
7
8
 - The private bucket is strictly restricted and used to securely store sensitive configuration data, including API URLs, application secrets, and cryptographic peppers.
9
10
S3 Bucket Configuration:
11
|s3|value|
12
|--|--|
13
|Region|ap-southeast-1 (Singapore)|
14
|Bucket|ico-config|
15
|Path|uat/ico-web/env.env|
16
17
Environment File Contents:
18
19
|Name|Value|
20
|--|--|
21
|ENVIRONMENT|UAT|
22
|BASE_URL|https://uat.finansiaportal.com|
23
|BASE_REKOGNITOR_URL|https://ico-documents.s3.ap-southeast-1.amazonaws.com|
24
|BASE_STATIC_URL|https://ico-documents.s3.ap-southeast-1.amazonaws.com|
25
|BASE_BUCKET_URL|https://ico-documents.s3.ap-southeast-1.amazonaws.com|
26
|PEPER|bac9884f2ed8aec81ffbcd63396938f6|
27
|PEPER_BACK_REGISTER|8XhsFQ6cvxWHdz5nET4wQMSQAJErdJ4p|
28
|PEPER_CID|56477db41c1b95b9dd1c2d142df7e215|
29
30
---
31
32
## <u> **2. Utility Files (Public Access)** </u>
33
34
 - The public bucket is configured to allow read access for the application to retrieve non-sensitive utility files, static assets, and localization data.
35
36
Bucket Metadata (Applies to all utility files):
37
38
 - **Region**: ap-southeast-1 (Singapore)
39
40
 - **Bucket Name**: ico-documents
41
42
43
**JSON Constants**
44
45
 - This directory stores static JSON data sets used by the application, including localized versions for multi-language support.
46
 
47
|Path|Description|Example|
48
|--|--|--|
49
|constants/*|for Thai data source json|constants/banks.json|
50
|constants/locale/*|for multi language (TH, EN) data source json|constants/locale/banks.json|
51
52
53
**Image Assets & Icons**
54
55
 - This directory hosts publicly accessible graphical assets for the user interface.
56
 
57
|Path|Description|Example|
58
|--|--|--|
59
|images/*|Public image files, including app icons, logos, and illustrations (supported formats: .png, .svg)|images/logo.svg|