👈 Prev: Part 1 - CloudFormation 部署前後端

<aside> 🤔 商業情境的部分講完了嗎?請跟著活動進行,不要偷跑喔!

</aside>

<aside> ⚠️ Prerequisite: 確定 stack “ws-musive” 已經 ✅ CREATE_COMPLETE

Untitled

</aside>

從 Admin Panel 連線資料庫

(Other option) 從 EC2 連線資料庫

打開 Admin Panel

  1. 按此連結打開 Admin Panel: Admin Panel (awseducate.systems)

    image.png

連線到資料庫 musive

一、複製 RDSEndpoint

  1. 回到 AWS console 的 CloudFormation 頁面

    Untitled

  2. 選擇 ws-musive,在右邊彈出的詳細內容中,選擇 Outputs 標籤

    Untitled

  3. 往下滑找到 RDSEndpoint,複製 RDSEndpoint

    Untitled

二、連線資料庫

  1. 將 RDSEndpoint 貼上 Admin Panel

    image.png

  2. 按 INITIALIZE DB

    image.png

開啟最簡易版網頁

  1. 進到 EC2

    Untitled

  2. 複製 Public IPv4 address 的這串數字

    Untitled

  3. 將以下網址中的 <address> 換成剛才複製的 Public IPv4 address,貼上瀏覽器

    http://<address>:3000
    

    Untitled

    Untitled

  4. 按下 Get started,進行註冊 (隨便輸入 12345 就可以了)

    Untitled