{"id":17383214,"url":"https://github.com/shintaro-abe/wordpress-userdata","last_synced_at":"2026-04-09T17:34:31.626Z","repository":{"id":167848055,"uuid":"643470125","full_name":"Shintaro-Abe/Wordpress-userdata","owner":"Shintaro-Abe","description":"Userdata for installing Wordpress on EC2. This script can also configure wp-config.","archived":false,"fork":false,"pushed_at":"2023-09-06T02:21:11.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T20:49:42.816Z","etag":null,"topics":["aws","ec2","mysql","shellscript","userdata","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shintaro-Abe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-21T09:09:16.000Z","updated_at":"2023-05-31T09:58:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f549dc9f-c922-4381-bbd1-acb404393781","html_url":"https://github.com/Shintaro-Abe/Wordpress-userdata","commit_stats":null,"previous_names":["shintaro-abe/wordpress-userdata"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2FWordpress-userdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2FWordpress-userdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2FWordpress-userdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2FWordpress-userdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shintaro-Abe","download_url":"https://codeload.github.com/Shintaro-Abe/Wordpress-userdata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924498,"owners_count":20694728,"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","ec2","mysql","shellscript","userdata","wordpress"],"created_at":"2024-10-16T07:40:58.140Z","updated_at":"2025-10-14T13:07:31.100Z","avatar_url":"https://github.com/Shintaro-Abe.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordpress-userdata\n## 使用について\n* __AmazonLinux2023は非対応。AmazonLinux2での使用を推奨。__\n    * AmazonLinux2023で使用できるスクリプトを作成中。\n* __SystemsManager ParameterStoreにあらかじめパラメータを設定。__\n* __EC2のインスタンスプロファイルにIAMロールを設定。__\n    * ` ssm:GetParameter `ポリシーが必要。\n\n\n## スクリプトについて\n以下の流れでインストールを実施。\n* __SystemsManager ParameterStoreからパラメータを取得、環境変数に設定__\n* __必要なパッケージのインストール__\n* __MySQLユーザーの作成__\n* __Wordpressのダウンロード__\n* __wp-config.phpの修正__\n\n\n## コマンドについて\n### SystemsManager ParameterStoreのパラメータ取得\n\n```\nvariable=$(aws ssm get-parameter --name \"parameter_name\" --with-decryption --region current_region  --output text --query Parameter.Value)\n```\n\nvariableに` ssm get-parameter `コマンドで取得した値が入るので、スクリプトでパラメータを参照する箇所に` $variable `の形式で記述。\nパラメータのタイプはString、SecureString関係なく使用可能。\n\n### MySQLログイン\nMySQLコマンドを、` \u003c\u003cEOF `から` EOF `で指定。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshintaro-abe%2Fwordpress-userdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshintaro-abe%2Fwordpress-userdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshintaro-abe%2Fwordpress-userdata/lists"}