진취적 삶
섹션 12 Amazon S3 소개 본문
S3 무한하게 확장할수 있는 스토리지
- 백업과 스토리지용
- 재해복구 용도
- 아카이브
- 미디어 호스팅
S3- Buckets
- s3는 사람들이 파일을 buckets 안에 저장하도록 한다
- 전역적으로 고유한 단 하나의 이름
S3 - objects
- KEY is the FULL path :
- key is composed of prefix + object name
- object Size is 5TB 부분파일로 나눠서 올려야 함
- 파일 크기가 100MB 가 넘는 경우에는 멀티파트 업로드 권장
S3 - Security
- User-Based
- IAM Policies - which API calls should be allowed for a specific user from IAM
- Resource - Based
- bucket policies -bucket wide rules from the S3 console
- object Access Control List(ACL)
- Bucket Access Control List(ACL )
s3 bucket policies
- JSON based policies
공개를 허용하는 bucket 정책 변경
{
"Id": "Policy1688879037150",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1688879034402",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::suhahwang-demo-s3/*",
"Principal": "*"
}
]
}
- 버전관리
최신 버전의 파일을 삭제할 경우 이전의 상태로 되돌리수 있다.
s3 - replication (CRR & SRR)
- must enable versioning in source and destination buckets
- cross -region replication (CRR)
- same - region replication (SRR)
- must give proper IAM permissions to S3
- S3 버킷에 있는 콘텐츠를 다른 aws 리전에서 완전히 가용할수 있게 만들기 위해 s3 복제
s3 - storage classes
- Amazon S3 standard - General Purpose 99.99% Availability 자주 접근 데이터에 용이 낮은 지연성 높은 처리량
- Amazon S3 standard-infrequent Access (IA) standard 보다 쌈 99.9 % Availability
- Amazon S3 One Zone -infrequent Access 높은 내구성을 갖지만 AZ가 파괴되는경우 데이터를 잃게됨
- Amazon S3 Glacier Instant Retrieval Low-cost object storage for archiving /back up pricing : price for strage + object retrieval cost 분기에 한번 엑세스 하는 데이터에 적합 최소 보관 기간 90일
- Amazon S3 Glacier Flexible Retrieval Low-cost object storage for archiving /back up pricing : price for strage + object retrieval cost 최소 보관 기간 90일 세개의 티어
- Expedited( 1 to 5 min)
- standard( 3 to 5 hours )
- bul (5 to 12 hours ) free
- Amazon S3 Glacier Deep Archive 두개의 티어
- standard(12 hours)
- bulk (48 hours) 최소 보관 기간 180 일 가격도 쌈
- Amazon S3 Intelligent Tiering 사용 패턴에 따라 티어 변경 검색 비용 없음
Durability : 손실 횟수
Availability : 서비스가 얼마나 용이하게 제공되는지
'AWS SAA' 카테고리의 다른 글
섹션 20: 서버리스 솔루션 아키텍처 토론 (0) | 2023.07.16 |
---|---|
섹션 21 aws의 데이터베이스 (0) | 2023.07.16 |
섹션 13 고급 amazon S3 (0) | 2023.07.15 |
섹션 14 아마존 S3 보안 (0) | 2023.07.15 |
섹션 15 AWS CloudFront (0) | 2023.07.15 |