-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeployintos3.txt
More file actions
29 lines (16 loc) · 902 Bytes
/
deployintos3.txt
File metadata and controls
29 lines (16 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Deploy to S3 Bucket
Staging -
Copy s3 code - aws s3 cp s3://yourdomain./ --recursiveDeploy code to s3 - aws s3 sync ./ s3://yourdomain --metadata-directive REPLACE \
--cache-control max-age=86400
Beta -
Copy s3 code - aws s3 cp s3://yourdomain ./ --recursiveDeploy code to s3 - aws s3 sync ./ s3://yourdomain
Production
Copy s3 code - aws s3 cp s3://yourdomain ./ --recursiveDeploy code to s3 - aws s3 sync ./ s3://yourdomain --metadata-directive REPLACE \
--cache-control max-age=86400
TagAPI
Cache control maxage 30 days 2592000
Cache control maxage 7 days 604800
Copy s3 code - aws s3 cp s3://yourdomain ./ --recursiveDeploy code to s3 - aws s3 sync ./ s3://yourdomain --recursive --cache-control max-age=604800 --region ap-south-1
Deploy code to s3 using max age - aws s3 sync ./ s3://yourdomain --metadata-directive REPLACE \
--cache-control max-age=604800
86400 - 1day