Browse Source

Make s3 bucket variable work

bonus: instruction not to include s3:// in the bucket name
main
Peter Bull 9 years ago
parent
commit
4e29e24bfe
  1. 2
      cookiecutter.json
  2. 4
      {{ cookiecutter.repo_name }}/Makefile

2
cookiecutter.json

@ -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://')"
} }

4
{{ cookiecutter.repo_name }}/Makefile

@ -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…
Cancel
Save