This is a super silly demo of deploying an app to AWS with one line.
The app is a reeealy basic REST api for reading and writing keys in a redis database.
rodemoAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for some AWS_REGION and
$ export AWS_ACCESS_KEY_ID=myid AWS_SECRET_ACCESS_KEY=myaccesskey AWS_REGION=someregion
$ docker run --rm -it \
-e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_REGION \
-v ${PWD}/output/:/output \
coreypobrien/ro-fun create
$ curl your.ip.from.above/newkey -d 'asdfasdf
'
Roger Roger
$ curl your.ip.from.above/newkey
asdfasdf
$ curl your.ip.from.above
newkey
$ docker run --rm -it \
-e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_REGION \
-v ${PWD}/output/:/output \
coreypobrien/ro-fun destroy
Did I mention is mostly for fun? It really is an anti-pattern in at least a few major ways.
Content type
Image
Digest
Size
36.1 MB
Last updated
over 9 years ago
docker pull coreypobrien/ro-fun