From 1c8cc991912d6cae5773e130af969ff648f8e3f2 Mon Sep 17 00:00:00 2001 From: Peter Lillian Date: Thu, 20 Jun 2019 23:54:31 -0700 Subject: [PATCH] Presign expiry reduced to 604800 AWS reduced the maximum presign expiry to 604800, so this change is necessary. --- scripts/launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/launch.py b/scripts/launch.py index db64ca4c..5358cbb2 100644 --- a/scripts/launch.py +++ b/scripts/launch.py @@ -51,7 +51,7 @@ def upload_archive(exp_name, archive_excludes, s3_bucket): highlight(" ".join(upload_cmd)) subprocess.check_call(upload_cmd) - presign_cmd = ["aws", "s3", "presign", remote_archive_path, "--expires-in", str(60 * 60 * 24 * 30)] + presign_cmd = ["aws", "s3", "presign", remote_archive_path, "--expires-in", str(604800)] highlight(" ".join(presign_cmd)) remote_url = subprocess.check_output(presign_cmd).decode("utf-8").strip() return remote_url