In Progress

AWS Deployment Release Engineering

I'm the architect and founder of a new startup. I'm looking for help creating deployment setup on AWS EC2.

The startup site runs on Java/Tomee/JSF (it's Tomcat for JavaEE and follows same design and structure as Tomcat) and Linux. The goal is to automate deployment and EC2 instance creation process. So in case an instance had failed, a new one can be automatically started without manual intervention.

There are two parts to this assignment; EC2 instance setup, and a build script to deploy latest WAR.

To complete this work you need to have your own Amazon account. You can finish needed work for free on Amazon free tier. Be sure to parameterize all needed info (Amazon Id, secret, S3 buckets, user names, passwords, etc...) in scripts, nothing should be hard-coded.

The solution I came up with is to use ubuntu cloudInit to setup EC2 when an instance is created. All detailed steps are below. I'm open to suggestions and improvements. Depending on quality of work and neatness I'll pay for finished two scripts up to $250. Depending on your experience this work will take 4-8 hours. For the second deployment script I already have one that works. We can discuss in more details. I'm hoping to have this done ASAP. Will pay you once I have working scripts tested.

Keep in mind, this is just the start, there is many similar work opportunities of this type for other parts of the system nodes (DB, cache, search, etc...).

Deployment Prerequisites:

You'll have a WAR and Tomee in a release bucket on S3. For your own work, you can simply use Tomcat and a simple war stored on your S3. Your script will take an S3 bucket name and amazon id + secret to get needed files. When I test the script I'll test with my own Amazon account and files in S3. This way you're isolated from specifics. WAR file name will be: [url removed, login to view], app server file: [url removed, login to view]

EC2 Instance Deployment:

When creating a new EC2 on plain vanilla Latest Ubuntu AMI, hook cloud init script to do below:

set up ROOT password

create tomee user

uninstall openJDK if installed

install Sun JRE 1.6 (requires setting up 3rd repo sources)

set up IP tables routes to forward from 80 to 8080 to tomee as we don't want root to run tomee. Assure this persists and survives reboots.

See sampl in this thread [url removed, login to view]

Disable unneeded services, the app only needs Java/Tomee and related system services to work

Security:

Set the instance to use an EC2 Security Group called sportivity-EC2-sec-group (group only exposes port 80 to public)

Setup SSH key on instance, take public key from S3 release bucket so only authorized admins can ssh to the server.

Disable Password-based Login and root login in SSH config.

Allow ssh access to user tomee in SSH config.

Any other security measures to take?

get Tomee zip from S3, extract locally to /home/tomee

set up proper file system directory permissions

Call Release script below

Release Deployment:

Stop Tomee

Remove old /home/tomee/webapps/[url removed, login to view] if it exists

Copy latest WAR from S3 to /home/tomee/webapps/[url removed, login to view]

Start Tomee as Tomee user

In case of Server restart Tomee should be started (make tomee [url removed, login to view] a service)

Assure Tomee started successfully

Skills: Amazon Web Services, Java, Linux, Shell Script, Software Architecture

See more: assignment, work opportunities from home, working from home opportunities, work from home with amazon, work from home opportunities free, work from home free start up, work from home architect, when do you need an architect, use case creation, use case amazon, ubuntu service, the engineering design process, system architect, start working from home for free, ssh copy directory, solution design group, should i need an architect, root info, opportunities to work from home, need engineering services, need engineering, make your own design name free, i want an architect, i need to make production create, i need help creating an app

About the Employer:
( 1 review ) Watertown, United States

Project ID: #2693574

Awarded to:

tobiaspal

I'm an experienced system administrator working for a Java web application development company.

$250 USD in 4 days
(2 Reviews)
3.6

3 freelancers are bidding on average $333 for this job

garhwalsatyapal

ready to work with you

$250 USD in 5 days
(8 Reviews)
3.8
jamiesonbecker

Your use of UserData via CloudInit is a smart move. In fact, I would suggest going a step further and deploying this via a complete CloudFormation script or possibly even by using Elastic Beanstalk which resolves a More

$500 USD in 2 days
(0 Reviews)
0.0