Skip to content

Commit 97ac022

Browse files
authored
Update init_workflow.py
1 parent 4218b88 commit 97ac022

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

init_workflow.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,24 @@ def download_data(prefix, reaches_of_interest):
150150
)
151151
logging.info("Uploaded %s to %s/continent-setfinder.json", cont_setfinder, json_bucket)
152152

153-
cont_setfinder = EFS_DIR_INPUT.joinpath("continent.json")
153+
154+
continent = EFS_DIR_INPUT.joinpath("continent.json")
154155
S3.download_file(
155156
config_bucket,
156157
"continent.json",
157-
cont_setfinder
158+
continent
158159
)
159-
logging.info("Downloaded %s/continent.json to %s", config_bucket, cont_setfinder)
160-
160+
logging.info("Downloaded %s/continent.json to %s", config_bucket, continent)
161+
S3.upload_file(
162+
continent,
163+
json_bucket,
164+
"continent.json",
165+
ExtraArgs={
166+
"ServerSideEncryption": "aws:kms"
167+
}
168+
)
169+
logging.info("Uploaded %s to %s/continent.json", continent, json_bucket)
170+
161171

162172
if not SWORD_PATCHES.exists():
163173
S3.download_file(

0 commit comments

Comments
 (0)