Having an EIP 159.100.241.235 it allows to automatically configure it and use it for SSH access after deployment, for CentOS.
#cloud-config
write_files:
- content: |
| var IMAGE_MIME_REGEX = /^image\/(p?jpeg|gif|png)$/i; | |
| var loadImage = function (file) { | |
| var reader = new FileReader(); | |
| reader.onload = function(e){ | |
| var img = document.createElement('img'); | |
| img.src = e.target.result; | |
| var range = window.getSelection().getRangeAt(0); | |
| range.deleteContents(); |
| # ported from http://www.gizma.com/easing/ | |
| # by http://th0ma5w.github.io | |
| # | |
| # untested :P | |
| import math | |
| linearTween = lambda t, b, c, d : c*t/d + b |