Terraform module for Plex Media Server on AWS using Spot Instances and S3 for Media Storage
Get Plex Claim Token: https://www.plex.tv/claim
The Claim Token is only good for a few minutes, so it is easiest to not set this variable and let Terraform prompt you for it.
After your server is done spinning up
If the plex app cannot connect to your server
Go to http://{ip}:32400/web
Settings -> Remote Access -> Enable Remote Access
Check Specify Port (leave the port the same) and retry
Go to Manage -> Libraries
Create libraries seleting folders within the /plex-data folder
Minimize EBS and S3 API Requests to Reduce Cost
To avoid scanning of the files in the S3 bucket (meaning additional S3 api requests and additional EBS i/o requests -> additional cost)
Don't set Plex to periodically scan library
Turn off scheduled tasks that will scan the library - I leave on the following
Backup database every three days
Optimize database every week
Remove old bundles every week
Remove old cache files every week
Upgrade media analysis during maintenance
Name
Source
Version
plex_autoscaling
terraform-aws-modules/autoscaling/aws
~> 9.2
s3_plex_db
terraform-aws-modules/s3-bucket/aws
~> 5.10
s3_plex_storage
terraform-aws-modules/s3-bucket/aws
~> 5.10
vpc
terraform-aws-modules/vpc/aws
~> 6.6
No outputs.