Skip to content

qryuu/AWS-Generic-UserData

Repository files navigation

AWS-Generic-UserData

A collection of AWS UserData for general use 汎用的なAmazon Linux 2 EC2用UserData スクリプト

Overview お品書き

lamp-Initial_construction.sh

Install Apache, php, mariaDB, redis for Amazon Linux2. Initialize mariaDB and create an empty DB with the name specified in “Setting value”.

Amazon Linux2 に対してApache,php,mariaDB,redisをインストールします。 mariaDBの初期化を行い、”設定値” で指定された名前の空DBを作成します。

lamp-Initial_construction_wordpress.sh

Install Wordpress for Amazon Linux2. Initialize mariaDB and create an Wordpress DB with the name specified in “Setting value”.

argument "DBtype Local or RDS" "Wordpress db name" "wordpress db user name" "wordpress db password" "rds endpoint" "rds root user" "rds root password"

Amazon Linux2 に対してWordpressをインストールします。 mariaDBの初期化を行い、”設定値” で指定された名前のWordpressDBを作成します。

引数 "DBtype Local or RDS" "Wordpress db name" "wordpress db user name" "wordpress db password" "rds endpoint" "rds root user" "rds root password"

DefaultSetting デフォルト設定

DBType : local
wordpress_db_name : wpdb
wordpress_user_bame : wpuser
wordpress_password : wppass

If you run the script with no arguments, it will be built with the above settings.
引数無しでスクリプトを実行した場合上記の設定で構築されます。

#!/bin/bash  
  
curl -L https://raw.githubusercontent.com/qryuu/AWS-Generic-UserData/master/lamp-Initial_construction_wordpress.sh | bash

Example

#!/bin/bash  
  
curl -L https://raw.githubusercontent.com/qryuu/AWS-Generic-UserData/master/lamp-Initial_construction_wordpress.sh | bash -s local wordpressdb wpdbuser passw0rd
#!/bin/bash  
  
curl -L https://raw.githubusercontent.com/qryuu/AWS-Generic-UserData/master/lamp-Initial_construction_wordpress.sh | bash -s RDS wordpressdb wpdbuser passw0rd wrodpress.example.ap-northeast-1.rds.amazon.com:3306 root rdspassword

Login to the WordPress administration screen 管理画面へのログイン

http://"ipaddress"/wp-admin
Login ID : <wordpress_user_name>
Password : <wordpress_password>

About

A collection of AWS UserData for general use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages