diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..b326afb --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9.15 diff --git a/README.md b/README.md index e5067af..4f48a69 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,19 @@ To run a single test from root: `cd analysis && pytest utils/tests/test_cleaning.py` -### Terraform \ No newline at end of file +### Terraform + +To build the resources needed to run the glue job in aws you should move into the tf directory then run: + +1. `terraform init` +2. `terraform plan` +3. `terraform apply` + +#### Notes: + +- The terraform holds its state remotely. You should create an aws bucket in your aws account named `recommendation-engine-terraform-state` +- You should create a dynamo-db table named `recommendation-engine-lock` + - That table MUST have an id of LockID +- You will need to change the name of your S3 bucket. S3 bucket names must be globally unique +- You need to manually add the `all_movies.csv` from analysis/notebooks/input/all_movies.csv to your S3 bucket once it's created +- You will need to run the ./upload_prepare.sh script manually if you don't let github run the step for you before using the script in AWS \ No newline at end of file