Here I added a --download flag to the existing sync-results.py script. At the moment, this option works quite simply to reverse the source and destination for the internal aws sync command, and should allow downloading from a results bucket with code like the following, (assuming the sso login has been performed):
All of the other options continue to work, so to use a different profile from the currently active one and perform a dry run, you would add options as follows:
My only other thought here is that it might be nice to have the bucket autopopulate for each module if we had a file somewhere that stored the bucket name, such as <module>/.aws_bucket which could save a bit of repeated manual checking. But that could be a later PR.
closes https://github.com/AlexsLemonade/OpenScPCA-admin/issues/257
Here I added a
--download
flag to the existingsync-results.py
script. At the moment, this option works quite simply to reverse the source and destination for the internalaws
sync command, and should allow downloading from a results bucket with code like the following, (assuming the sso login has been performed):All of the other options continue to work, so to use a different profile from the currently active one and perform a dry run, you would add options as follows:
My only other thought here is that it might be nice to have the bucket autopopulate for each module if we had a file somewhere that stored the bucket name, such as
<module>/.aws_bucket
which could save a bit of repeated manual checking. But that could be a later PR.