{"id":14957850,"url":"https://github.com/zahorniak/terraform-aws-plex","last_synced_at":"2026-02-03T06:32:47.325Z","repository":{"id":247459779,"uuid":"807992301","full_name":"zahorniak/terraform-aws-plex","owner":"zahorniak","description":"Terraform module for Plex Media Server on AWS using Spot Instances and S3 for Media Storage","archived":false,"fork":false,"pushed_at":"2024-10-07T10:44:34.000Z","size":52,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T06:50:07.654Z","etag":null,"topics":["aws","aws-spot","plex","plex-media-server","s3","terraform","terraform-module","terraform-modules"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zahorniak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-30T07:07:26.000Z","updated_at":"2024-09-18T13:34:45.000Z","dependencies_parsed_at":"2024-07-08T23:16:36.225Z","dependency_job_id":null,"html_url":"https://github.com/zahorniak/terraform-aws-plex","commit_stats":null,"previous_names":["zahorniak/terraform-aws-plex"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahorniak%2Fterraform-aws-plex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahorniak%2Fterraform-aws-plex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahorniak%2Fterraform-aws-plex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zahorniak%2Fterraform-aws-plex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zahorniak","download_url":"https://codeload.github.com/zahorniak/terraform-aws-plex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237964544,"owners_count":19394419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-spot","plex","plex-media-server","s3","terraform","terraform-module","terraform-modules"],"created_at":"2024-09-24T13:15:42.599Z","updated_at":"2026-02-03T06:32:42.304Z","avatar_url":"https://github.com/zahorniak.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform module for Plex Media Server on AWS using Spot Instances and S3 for Media Storage\n\n## Plex Claim Token\n\nGet Plex Claim Token: https://www.plex.tv/claim\n\nThe 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.\n\n## After your server is done spinning up\n\n### If the plex app cannot connect to your server\n\n* Go to http://{ip}:32400/web\n* Settings -\u003e Remote Access -\u003e Enable Remote Access\n    * Check Specify Port (leave the port the same) and retry\n\n### Create Libraries\n\n* Go to Manage -\u003e Libraries\n    * Create libraries seleting folders within the /plex-data folder\n\n### Minimize EBS and S3 API Requests to Reduce Cost\n\nTo avoid scanning of the files in the S3 bucket (meaning additional S3 api requests and additional EBS i/o requests -\u003e additional cost)\n * Don't set Plex to periodically scan library\n * Turn off scheduled tasks that will scan the library - I leave on the following\n   * Backup database every three days\n   * Optimize database every week\n   * Remove old bundles every week\n   * Remove old cache files every week\n   * Upgrade media analysis during maintenance\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.3.7 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 4.30 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 4.30 |\n\n## Modules\n\n| Name | Source | Version |\n|------|--------|---------|\n| \u003ca name=\"module_plex_autoscaling\"\u003e\u003c/a\u003e [plex\\_autoscaling](#module\\_plex\\_autoscaling) | terraform-aws-modules/autoscaling/aws | ~\u003e 7.7 |\n| \u003ca name=\"module_s3_plex_db\"\u003e\u003c/a\u003e [s3\\_plex\\_db](#module\\_s3\\_plex\\_db) | terraform-aws-modules/s3-bucket/aws | ~\u003e 3.3 |\n| \u003ca name=\"module_s3_plex_storage\"\u003e\u003c/a\u003e [s3\\_plex\\_storage](#module\\_s3\\_plex\\_storage) | terraform-aws-modules/s3-bucket/aws | ~\u003e 3.3 |\n| \u003ca name=\"module_vpc\"\u003e\u003c/a\u003e [vpc](#module\\_vpc) | terraform-aws-modules/vpc/aws | ~\u003e 5.9 |\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_iam_policy.plex_server](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |\n| [aws_security_group.plex_admin](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/security_group) | resource |\n| [aws_ssm_parameter.plex_claim_token](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter) | resource |\n| [aws_ami.plex](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami) | data source |\n| [aws_availability_zones.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source |\n| [aws_iam_policy_document.plex_ec2](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_aws_region\"\u003e\u003c/a\u003e [aws\\_region](#input\\_aws\\_region) | AWS Region | `string` | `\"eu-central-1\"` | no |\n| \u003ca name=\"input_force_destroy\"\u003e\u003c/a\u003e [force\\_destroy](#input\\_force\\_destroy) | Force destroy the S3 bucket | `bool` | `false` | no |\n| \u003ca name=\"input_instance_storage_size\"\u003e\u003c/a\u003e [instance\\_storage\\_size](#input\\_instance\\_storage\\_size) | Size for EC2 EBS root volume | `number` | `30` | no |\n| \u003ca name=\"input_instance_type\"\u003e\u003c/a\u003e [instance\\_type](#input\\_instance\\_type) | Type of EC2 instance | `string` | `\"t3a.micro\"` | no |\n| \u003ca name=\"input_plex_claim_token\"\u003e\u003c/a\u003e [plex\\_claim\\_token](#input\\_plex\\_claim\\_token) | Token to claim your plex media server.  You can get this by going to https://www.plex.tv/claim. | `string` | n/a | yes |\n| \u003ca name=\"input_plex_libraries\"\u003e\u003c/a\u003e [plex\\_libraries](#input\\_plex\\_libraries) | List of Plex libraries | `list(string)` | n/a | yes |\n\n## Outputs\n\nNo outputs.\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahorniak%2Fterraform-aws-plex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzahorniak%2Fterraform-aws-plex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahorniak%2Fterraform-aws-plex/lists"}