This is a simple .NET application which does reads from stdin and prints the result backwards. This is compiled with mono and executed with AWS lambda.
- Setup
- boot a new Amazon Linux EC2 instance (t2.micro is fine)
- Edit
/etc/yum.repos.d/epel.repo
- set
enabled=1
in[epel]
section - run
sudo yum install mono-core mono-extras mono-devel
- run
sudo yum groupinstall "Development Tools"
- Build
git clone https://gist.github.com/e200ed6699addb6c1052eb0deb41c0f1.git reverse_cat
cd reverse_cat
make
- Deploy
- Upload
reverse_cat.zip
to s3 - Upload provided cloud template to s3 folder
- Optional edit make file to point to a bucket your ec2 has access to, run
make upload
- Launch cloudformation template
- specify the bucket and full key to the uploaded zip file
- acknowledge that this formation creates an IAM role
- Upload
Once deployed you can execute any test object with the lambda and it will reverse the strigified test object.