李皓暐
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# How to Use AWS DMS migrating RDS data to S3 ## 前言 這個操作手冊展示了如何使用AWS DMS(Data Migration Service)將資料庫搬遷到雲端環境,或是將雲端資料庫的資料搬遷到其他雲端服務 例如:S3。 **本次操作主要演示如何將RDS當中的資料搬遷到S3當中** ## 創建Replication Instance * 進入DMS介面 在左側導覽列選取replication instance 在右側點選Create replication instance ![image](https://hackmd.io/_uploads/SkWlyycYkl.png) * 輸入instance name、選取instance type、選取是否要使用HA ![image](https://hackmd.io/_uploads/Bycj1y5tkg.png) * 確認機器磁碟大小 並選取VPC與Subnet Group > 注意:如果目標資料庫有網路環境設置 此instance需要與該資料庫在同個網路環境下 ![image](https://hackmd.io/_uploads/rJhvxJqFJl.png) * 點選Advanced setting 與目標RDS要能夠相通 因此新增Security Group ![image](https://hackmd.io/_uploads/ByuPbJqKJx.png) * 點選Create replication instance. 等待一段時間後確認Instance創建完成 ![image](https://hackmd.io/_uploads/rJlkMJqYkg.png) ## 創建Source and Target Enpoints * 在左側導覽列選取Endpoints 並在右側點選Create enpoint ![image](https://hackmd.io/_uploads/r1vnMkcF1x.png) * 我們創建Source enpoint 因為我們要執行將RDS的資料搬遷到S3 所以請勾選Select RDS DB instance 並選取DB。 * 在存取資料庫的部分 我建議使用Provide access informaion manually 這樣可以減少存取Secret Manager的權限錯誤 如果本來就是自行保管密碼即可忽略。 ![image](https://hackmd.io/_uploads/B1b47ycF1e.png) * 資料庫相關資訊會自動帶入 請輸入密碼與要進行搬遷的Database Name 並點選Create endpoint ![image](https://hackmd.io/_uploads/H1qd415Fyl.png) 創建Target Endpoint 選擇S3 bucket以及IAM Role ![image](https://hackmd.io/_uploads/SyQjR15Fyg.png) * Endpoint Setting請新增一個DataFormat為parquet * 因為使用到CDC的功能輸出的檔案必須為parquet檔案 否則會出現錯誤 * 因此需在這邊先設置 點選Create endpoint ![image](https://hackmd.io/_uploads/HkQWkgcKyl.png) * 進入Endpoint當中 點選connections 測試我們的replication Instance是否可以順利連線到資料庫 ![image](https://hackmd.io/_uploads/HJdygl9t1l.png) ## 創建Database Migration tasks * 在左操導覽列點選Database Migration tasks 並創建task ![image](https://hackmd.io/_uploads/S1HNbxqF1x.png) * 輸入名稱後點選先前創建的資源 Migration Type可以根據需求選則 * 這邊的Migration and replicate會先做一次整個database的搬遷後 根據資料的變動會再複製到S3 ![image](https://hackmd.io/_uploads/SJNGQxcYkx.png) * 點選add new selection rule * 至少要有一個rule 如果沒有特別的設定需求的話 如圖上預設即可 ![image](https://hackmd.io/_uploads/SkkAQecFyx.png) 可以進行Premigration Accessment 如有需求可以選擇 點選task ![image](https://hackmd.io/_uploads/BJ-wVlqYJx.png) * 顯示Load complete, replication ongoing代表順利將資料搬遷到S3了 並且會持續監測資料更新 ![image](https://hackmd.io/_uploads/Hk5pVlqFJl.png) ## 結果 * 可以在S3看見透過DMS搬遷上來的完整table(LOAD00000001.parquet)以及只複製更新內容(20250212-064917529.parquet)的parquet檔。 ![image](https://hackmd.io/_uploads/ByxMBl5tyl.png)

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully