AWS

[AWS] Relational Database Service (RDS)

Happy._. 2024. 6. 25. 12:49
  1. RDS로 이동  → Databases
  2. [Create database]
  3. Choose a database creation method: Standard create
  4. Engine options: MySQL
  5. Engine Version: MySQL 8.0.35
  6. Templates: Free tier
  7. Settings: DB instance identifier / Master username / Master password 설정
  8. Instance configuration: Burstable classes (includes t classes) - 제일 작은걸로
  9. Storage 설정
    • General Purpose SSD (gp2) - 제일 낮은 사양
    • Allocated storage: 20GiB
    • Storage autoscaling(자동 확장) 여부 설정 및 최대 저장 용량 설정 필요!!
  10. Connectivity 설정
    1. Compute resource: Don't connect to an EC2 compute resource
    2. Public access: Yes
    3. VPC security group (firewall)
      1. [Create new]
      2. New VPC security group name 설정
      3. Availability Zone: No preference
    4. Additional configuration 설정
      1. Initial database name: 접근할 때 사용할 DB명 지정
      2. Backup retention period: 며칠동안 백업을 가지고 있을지 지정
      3. Backup replication: 다른 Region으로 복제할지 여부(가용성을 높이고 싶다면 활성화)
  11. 월별 예상 비용 체크 후 [Create database]

생성된 DB에 접속하기

  1. 생성된 DB의 Connectivity & security 탭에서 Endpoint를 복사
  2. 복사한 Endpoint를 Host로 입력
  3. DB를 생성할 때 설정한 User / Password 입력 - Master
  4. Database에 Initial database name에서 설정한 이름 입력
  5. 연결 테스트

💡사용이 끝난 RDS는 꼭 삭제하기!!

'AWS' 카테고리의 다른 글

[AWS] Simple Storage Service (S3)  (0) 2024.06.25
[AWS] Elastic Load Balancer (ELB)  (0) 2024.06.25
[AWS] Elastic Compute Cloud  (0) 2024.06.24
[AWS] Identity and Access Management  (0) 2024.06.18