Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup: support imdsv2 only instance #18640

Merged
merged 4 commits into from
Oct 15, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion br/backup-and-restore-storages.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ tiup br restore db --db test -u "${PD_IP}:2379" \

如果你还没有创建备份数据保存目录,可以参考[创建存储桶](https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/user-guide/create-bucket.html)在指定的区域中创建一个 S3 存储桶。如果需要使用文件夹,可以参考[使用文件夹在 Amazon S3 控制台中组织对象](https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/user-guide/create-folder.html)在存储桶中创建一个文件夹。

> **注意:**
>
> AWS 在 2024 年改变了默认行为,新创建的实例默认设置仅支持 IMDSv2,详情请参考[将 IMDSv2 设为账户中所有新实例启动的默认设置](https://aws.amazon.com/about-aws/whats-new/2024/03/set-imdsv2-default-new-instance-launches/)。因此从 v8.4.0 开始,BR 支持在仅开启 IMDSv2 的 AWS EC2 实例上获取 IAM role 权限。在使用更早版本的 BR 时,需要设置实例为同时支持 IMDSV1 和 IMDSV2。
lilin90 marked this conversation as resolved.
Show resolved Hide resolved

配置访问 Amazon S3 的账户可以通过以下两种方式:

- 方式一:指定访问密钥
Expand Down Expand Up @@ -220,4 +224,4 @@ BR 和 PITR 将自动检测 Amazon S3 对象锁定功能的开启或关闭状态

> **警告:**
>
> 如果在快照备份执行过程中或者 PITR 日志备份过程中,才开启了对象锁定功能,快照备份或者日志备份可能会失败。需要重新启动快照备份或者 PITR 日志备份任务来继续完成备份。
> 如果在快照备份执行过程中或者 PITR 日志备份过程中,才开启了对象锁定功能,快照备份或者日志备份可能会失败。需要重新启动快照备份或者 PITR 日志备份任务来继续完成备份。