LoginSignup
0
0

More than 5 years have passed since last update.

[JAWS-UG CLI] EC2 #8 UserDataの作成 (sample):

Last updated at Posted at 2016-12-05

前提条件

0. 準備

1. 事前作業

変数の設定
FILE_EC2_USERDATA='userdata.bash'

2. 作成

コマンド
cat << EOF > ${FILE_EC2_USERDATA}
#!/bin/bash
sudo yum -y update
sudo yum install -y httpd
sudo service httpd start
sudo chkconfig httpd on
EOF

cat ${FILE_EC2_USERDATA}

3. 事前作業

完了

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0