[TIL] AWS - S3, EC2, RDS

Junyong-Ahn·2020년 1월 8일
0

과거

목록 보기
4/5

아마존은 개발을 위해 여러가지 기능들을 제공하고있다.
IT기업에 인프라를 제공. 기업들은 아마존이 제공하는 클라우드를 도입하여 IT 인프라를 조달하는데 비용을 대폭 줄였다.

원격접속

다양한 원격 프로그램을 이용하여 직접 서버가 구축되어있는 곳에 가지 않고, 해당 컴퓨터의 IP주소만을 이용해 접속할 수 있다.

Amazon S3

Amazon Simple Storage Service
Object storage built to store and retrieve any amount of data from anywhere
데이터 저장(정적 파일 저장)
Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. This means customers of all sizes and industries can use it to store and protect any amount of data for a range of use cases, such as websites, mobile applications, backup and restore, archive, enterprise applications, IoT devices, and big data analytics. Amazon S3 provides easy-to-use management features so you can organize your data and configure finely-tuned access controls to meet your specific business, organizational, and compliance requirements. Amazon S3 is designed for 99.999999999% (11 9's) of durability, and stores data for millions of applications for companies all around the world.
1. 리액트 프로젝트 생성
2. npm build 실행
3. Create Bucket
4. Public Bucket Policy 설정
버킷 정책 생성기 이용
5. build 폴더 내의 파일들을 모두 S3 Bucket 에 업로드

ARN

Amazon Resource Name. AWS의 모든 리소스를 식별하는 공통 Amazon 리소스 이름형식.

arn:partition:service:region:namespace:relative-id

arn:aws:s3:::bucket_name
arn:aws:s3:::bucket_name/key_name

// developers/design_info.doc 버킷의 examplebucket 객체를 식별한다
arn:aws:s3:::examplebucket/developers/design_info.doc
// ARN의 상대 ID 부분에 와일드카드 문자 *를 사용하여 examplebucket 버킷의 모든 객체를 나타냅니다.
arn:aws:s3:::examplebucket
// *를 사용하여 모든 Amazon S3 리소스(계정의 모든 S3 버킷 및 객체)를 나타냅니다.
arn:aws:s3:::*

정책

AWS Policy Generator
The AWS Policy Generator is a tool that enables you to create policies that control access to Amazon Web Services (AWS) products and resources. For more information about creating policies, see key concepts in Using AWS Identity and Access Management. Here are sample policies.

Amazon EC2

Amazon Elastic Compute Cloud (Amazon EC2)
Secure and resizable compute capacity in the cloud. Launch applications when needed without upfront commitments.
서버파일 (라우팅) 저장
Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment.
1. Start Instance
.pem file
원격 컴퓨터에 접속할 수 있는 키. EC2를 사용한다는 것은 아마존이 가지고 있는 여러 컴퓨터 중 하나의 컴퓨터를 임대한다는 의미다. 다양한 os가 깔린 컴퓨터를 선택할 수 있으며, 임대한 컴퓨터에 접속하기 위해서는 private key가 필요하다. 키를 생성하면 .pem 확장자를 가지는 파일이 생성된다. 잘 관리해야한다.

ssh
Secure Shell. 원격 접속을 이용하여 터미널 환경을 사용할 수 있도록 고안된 프로토콜이다. Rlogin, Telnet등이 있으며 ssh가 최근 가장 많이 사용된다.ssh는 보안을 중시한 프로토콜. 원격지로 접속을 가능하게하는 네트워크 접속 도구

Amazon RDS

Amazon Relational Database Service
Set up, operate, and scale a relational database in the cloud with just a few clicks.
Amazon Relational Database Service (Amazon RDS) makes it easy to set up, operate, and scale a relational database in the cloud. It provides cost-efficient and resizable capacity while automating time-consuming administration tasks such as hardware provisioning, database setup, patching and backups. It frees you to focus on your applications so you can give them the fast performance, high availability, security and compatibility they need.

Amazon RDS is available on several database instance types - optimized for memory, performance or I/O - and provides you with six familiar database engines to choose from, including Amazon Aurora, PostgreSQL, MySQL, MariaDB, Oracle Database, and SQL Server. You can use the AWS Database Migration Service to easily migrate or replicate your existing databases to Amazon RDS.

0개의 댓글