Open4

Google ColabとAWSを連携して、boto3を使う方法

Kyonaka@AWSエンジニアKyonaka@AWSエンジニア

AWS認証設定

import os

config_file = "/content/drive/MyDrive/[保存フォルダ]/config"
os.environ['AWS_CONFIG_FILE'] = config_file

credentials_file = "/content/drive/MyDrive/[保存フォルダ]/credentials"
os.environ['AWS_SHARED_CREDENTIALS_FILE'] = credentials_file