Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

前提条件

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. 事前作業

完了

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away