From 5443ecdd8cf1e163de09225f581833663351b0c3 Mon Sep 17 00:00:00 2001 From: HideakiImamura Date: Tue, 21 May 2024 16:35:45 +0900 Subject: [PATCH] tutorial --- tutorial/20_recipes/012_artifact_tutorial.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorial/20_recipes/012_artifact_tutorial.py b/tutorial/20_recipes/012_artifact_tutorial.py index 1dc1fa2c9c..9d4c9e30f9 100644 --- a/tutorial/20_recipes/012_artifact_tutorial.py +++ b/tutorial/20_recipes/012_artifact_tutorial.py @@ -183,13 +183,13 @@ def objective(trial: optuna.Trial) -> float: client=boto3.client( "s3", aws_access_key_id=os.environ[ - "PFS2_AWS_ACCESS_KEY_ID" + "AWS_ACCESS_KEY_ID" ], # Assume that these environment variables are set up properly. The same applies below. - aws_secret_access_key=os.environ["PFS2_AWS_SECRET_ACCESS_KEY"], - endpoint_url=os.environ["PFS2_S3_ENDPOINT"], + aws_secret_access_key=os.environ["AWS_SECRET_ACCESS_KEY"], + endpoint_url=os.environ["S3_ENDPOINT"], config=Config(connect_timeout=30, read_timeout=30), ), - bucket_name=pfs2_bucket, + bucket_name="example_bucket", )