Skip to content

Commit 63a409a

Browse files
authored
correct role handling and S3FS bypass (#130)
* correct role handling * enable separate source and destination buckets * fix complete s3fs bybass * add upload flags * update to AWS CLI2
1 parent d093164 commit 63a409a

File tree

6 files changed

+436
-440
lines changed

6 files changed

+436
-440
lines changed

config.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
AWS_REGION = 'us-east-1'
1010
AWS_PROFILE = 'default' # The same profile used by your AWS CLI installation
1111
SSH_KEY_NAME = 'your-key-file.pem' # Expected to be in ~/.ssh
12-
AWS_BUCKET = 'your-bucket-name'
12+
AWS_BUCKET = 'your-bucket-name' # Bucket to use for logging
13+
SOURCE_BUCKET = 'bucket-name' # Bucket to download files from
14+
DESTINATION_BUCKET = 'bucket-name' # Bucket to upload files to
15+
UPLOAD_FLAGS = '' # Any flags needed for upload to destination bucket
1316

1417
# EC2 AND ECS INFORMATION:
1518
ECS_CLUSTER = 'default'
@@ -32,7 +35,7 @@
3235
SQS_DEAD_LETTER_QUEUE = 'arn:aws:sqs:some-region:111111100000:DeadMessages'
3336

3437
# LOG GROUP INFORMATION:
35-
LOG_GROUP_NAME = APP_NAME
38+
LOG_GROUP_NAME = APP_NAME
3639

3740
# REDUNDANCY CHECKS
3841
CHECK_IF_DONE_BOOL = 'False' #True or False- should it check if there are a certain number of non-empty files and delete the job if yes?

files/exampleJob.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"_comment1": "Paths in this file are relative to the root of your S3 bucket",
3-
"pipeline": "projects/analysis.cppipe",
4-
"data_file": "projects/list_of_images.csv",
2+
"_comment1": "Paths in this file are relative to the root of S3 buckets",
3+
"_comment2": "pipeline, data_file, and input are relative to SOURCE_BUCKET; output to DESTINATION_BUCKET",
4+
"pipeline": "projects/analysis.cppipe",
5+
"data_file": "projects/list_of_images.csv",
56
"input": "projects/input/",
67
"output": "projects/output/",
78
"output_structure": "Metadata_Plate-Metadata_Well-Metadata_Site",
@@ -11,4 +12,3 @@
1112
{"Metadata": "Metadata_Plate=Plate1,Metadata_Well=A01,Metadata_Site=2"}
1213
]
1314
}
14-

0 commit comments

Comments
 (0)