LoginSignup
1
1

More than 1 year has passed since last update.

AWS S3のCSVにWatson Studioからアクセスする

Posted at

AWS S3のCSVにWatson Studioからアクセスします。
あらかじめS3にはバケットs3testwsとユーザーs3testwsuserを作っておきます。

参考:AWS S3の特定bucketにCLIやAPIでアクセスする設定 - Qiita

Watson Studioからは「接続」オブジェクトでバケットへの接続情報を定義し、「接続データ」オブジェクトでバケット内のCSVを定義するとアクセスできるようになります。

image.png

1. 接続オブジェクトの作成

「プロジェクトに追加」で「接続」を選びます。
image.png

接続タイプにAmazon S3を選びます。
image.png

接続の作成で詳細を入力します。
名前: 任意ですが、ここではバケット名を指定しています。
バケット: s3testws
エンドポイントURL:以下からリージョンにあったURLを探します。

https://docs.aws.amazon.com/ja_jp/general/latest/gr/s3.html
image.png

リージョンがap-northeast-1の場合は、https://s3.ap-northeast-1.amazonaws.comです。

リージョン:ap-northeast-1
アクセスキー:s3testwsuserのアクセスキーIDを指定します。
秘密鍵:s3testwsuserのシークレットアクセスキー指定します。
image.png

2.接続データの設定

「プロジェクトに追加」で「接続データ」を選びます。
image.png
「ソースの選択」をクリックします。
image.png

「接続」からs3testwsを選び、test.csvを選び、「選択」ボタンをクリックします。
image.png

名前test.csvを付けて、作成をクリックします。
image.png

データ資産にtest.csvが登録されたのでクリックして中身を確認します。
image.png

中身を確認できました。
image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1