Make s3 bucket variable work
bonus: instruction not to include s3:// in the bucket name
This commit is contained in:
parent
5214aeefa3
commit
4e29e24bfe
|
@ -3,5 +3,5 @@
|
||||||
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_') }}",
|
"repo_name": "{{ cookiecutter.project_name|replace(' ', '_') }}",
|
||||||
"author_name": "Your name (or your organization/company/team)",
|
"author_name": "Your name (or your organization/company/team)",
|
||||||
"description": "A short description of the project.",
|
"description": "A short description of the project.",
|
||||||
"s3_bucket": "your-bucket-for-syncing-data"
|
"s3_bucket": "your-bucket-for-syncing-data (do not include 's3://')"
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,10 +23,10 @@ lint:
|
||||||
flake8 .
|
flake8 .
|
||||||
|
|
||||||
sync_data_to_s3:
|
sync_data_to_s3:
|
||||||
s3cmd sync --recursive data/ s3://$( BUCKET )/data/
|
s3cmd sync --recursive data/ s3://$(BUCKET)/data/
|
||||||
|
|
||||||
sync_data_from_s3:
|
sync_data_from_s3:
|
||||||
s3cmd sync --recursive s3://$( BUCKET )/data/ data/
|
s3cmd sync --recursive s3://$(BUCKET)/data/ data/
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
# PROJECT RULES #
|
# PROJECT RULES #
|
||||||
|
|
Loading…
Reference in New Issue