Configuration
To run ygo-card-image-hosting
, configure your AWS credentials and download settings using two files: .auto.tfvars
(for Terraform) and .env
(for the application script).
Terraform Configuration
Section titled “Terraform Configuration”Create a file named .auto.tfvars
in the ./terraform
directory with your AWS details and desired S3 bucket name:
aws_region = "your-aws-region"aws_access_key_id = "your-access-key-id"aws_secret_access_key = "your-secret-access-key"bucket_name = "your-unique-bucket-name"
Application Configuration
Section titled “Application Configuration”Create a file named .env
at the root of the project directory. Use .env.example
as a reference.
# YGOPRODECKSTART_DATE=END_DATE=DATE_REGION=CARD_SIZE=
# AWSAWS_REGION=AWS_ACCESS_KEY_ID=AWS_SECRET_ACCESS_KEY=BUCKET_NAME=
- The AWS variables should match your
.auto.tfvars
. - YGOPRODECK variables (optional):
START_DATE
: Card release date range start (YYYY-mm-dd
, default2002-03-01
).END_DATE
: Card release date range end (YYYY-mm-dd
, default2002-04-01
).DATE_REGION
: Release date region (tcg
orocg
, defaulttcg
).CARD_SIZE
: Image size (FULL
,SMALL
,CROPPED
, defaultFULL
).
With configuration complete, you’re ready to run the service.