Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
| # .ebextensions/01-ebs.config | |
| commands: | |
| 01clear-if-unmounted: | |
| command: if ! mount | grep /media/ebs_volume > /dev/nul; then rm -rf /media/ebs_volume; fi | |
| 02attach-volume: | |
| command: aws ec2 attach-volume --region eu-central-1 --volume-id vol-ddb08e34 --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --device /dev/sdh | |
| ignoreErrors: true | |
| 03wait: | |
| command: sleep 10 | |
| 04trymount: |