1.4. UserDataの作成 (apache)¶
前処理¶
変数の設定:
DIR_CONF="${HOME}/tmp"
変数の設定:
FILE_INPUT="${DIR_CONF}/handson-2017-10-09.sh" \ && echo ${FILE_INPUT}
本処理¶
userdataの作成
コマンド:
cat << EOF > ${FILE_INPUT} #!/bin/bash yum -y update yum install -y httpd touch /var/www/html/index.html service httpd start chkconfig httpd on EOF cat ${FILE_INPUT}