Running the Hosting Service
Set up your AWS infrastructure and run the image archiving script using the steps below.
Set up AWS Infrastructure with Terraform
Section titled “Set up AWS Infrastructure with Terraform”From the project root, run the Terraform script:
bash scripts/run_terraform.sh
Follow the prompts.
The script will print the CloudFront url. Save this url.
Run the Image Archiving Script
Section titled “Run the Image Archiving Script”From the project root, build and run the Docker container:
docker compose builddocker compose up
Logs will show the download/upload progress.
Verifying the Setup
Section titled “Verifying the Setup”After both steps complete, test by visiting the URL for “Dark Magician” in your browser:
<your-cloudfront-prefix-url>/images/cards/46986414.jpg
Replace <your-cloudfront-prefix-url>
with the saved url.
If you see the image, your setup is working.