cfn-hup settings
]
]
}
+ },
+ "/lib/systemd/system/cfn-hup.service": {
+ "content": {
+ "Fn::Join": [
+ "",
+ [
+ "[Unit]\n",
+ "Description=cfn-hup daemon\n\n",
+ "[Service]\n",
+ "Type=simple\n",
+ "ExecStart=/opt/aws/bin/cfn-hup\n",
+ "Restart=always\n\n",
+ "[Install]\n",
+ "WantedBy=multi-user.target"
+ ]
+ ]
+ }
},
"/etc/awslogs.conf": {
"content": {
"mkdir -p /opt/aws/bin\n",
"wget https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz\n",
"python3 -m easy_install --script-dir /opt/aws/bin aws-cfn-bootstrap-py3-latest.tar.gz\n",
- "ln -s /root/aws-cfn-bootstrap-latest/init/ubuntu/cfn-hup /etc/init.d/cfn-hup\n",
- "chmod +x /etc/init.d/cfn-hup \n",
"update-rc.d cfn-hup defaults \n ",
- "service cfn-hup start \n",
+ "systemctl enable cfn-hup.service \n",
+ "systemctl start cfn-hup.service \n",
"# Install the sample application\n",
"/opt/aws/bin/cfn-init -v ",
" --stack ",
