跳到主要内容

将 AWS S3 设置为云层

如果运行的是 ONTAP 9.5 或更高版本,可将 AWS S3 设置为云层并为 FabricPool 设置 AWS Commercial Cloud Services(C2S)。

  1. 使用带有 -provider-typeAWS_S3 参数的 storage aggregate object-store config create 命令来指定 AWS S3 配置信息。
    • 使用 -auth-typeCAP 参数获取用于 C2S 访问的凭证。

      使用 -auth-typeCAP 参数时,必须使用 -cap-url 参数指定完整的 URL 以请求用于 C2S 访问的临时凭证。

    • storage aggregate object-store config create 命令在 ONTAP 无法使用提供的信息来访问 AWS S3 时将失败。

    • 可使用 -access-key 参数来指定用于授权 AWS S3 对象存储请求的访问密钥。

    • 可使用 -secret-password 参数来指定用于认证 AWS S3 对象存储请求的密码(机密性访问密钥)。

    • 如果更改了 AWS S3 密码,应立即更新 ONTAP 中保存的相应密码。

      这样做可使 ONTAP 无中断地访问 AWS S3 中的数据。

    cluster1::> storage aggregate object-store config create 
    -object-store-name my_aws_store -provider-type AWS_S3
    -server s3.amazonaws.com -container-name my-aws-bucket
    -access-key DXJRXHPXHYXA9X31X3JX
    cluster1::> storage aggregate object-store config create -object-store-name my_c2s_store -provider-type AWS_S3 -auth-type CAP -cap-url https://123.45.67.89/api/v1/credentials?agency=XYZ&mission=TESTACCT&role=S3FULLACCESS -server my-c2s-s3server-fqdn -container my-c2s-s3-bucket
  2. 使用 storage aggregate object-store config show 命令显示并验证 AWS S3 配置信息。
    storage aggregate object-store config modify 命令可用于修改 FabricPool 的 AWS S3 配置信息。