Startup company brand new to AWS - does this sound sensible?

Hi there.

I’m creating a start up company which serves as a SaaS product for security services. We’re planning on hosting the product on AWS EC2, and have done all of our testing so far on this. Unfortunately, I’m the sole dev, and have very little EC2/AWS knowledge.

Up until now, we’ve been developing the code in house, and then exporting the finished product into AWS’s free EC2 tier. This has been working great for the first round of user acceptance testing and tweaking, but we’re getting ready to move the product from ‘test’ to ‘production’, and now I need to decide which EC2 product to get.

Couple of things you should be aware of:

  1. All costs are coming out of my back pocket, so there isn’t a large amount of cash to play with, and until the company starts turning a profit, all costs are at a loss for me
  2. I’ve very little experience with AWS.
  3. My time is finite, so the more time I put into investigating options outside of the ones I’ve tested already, the less time I get to develop the codebase, and the longer the product gets to market.

My original plan was to buy a years reserved instance of EC2, backed with EBS storage to keep the cost down. We had roughly estimated the size of EC2 instance required (memory/cpu/HDD size) but have no idea how much performance the product will need when it’s under load, and just before I click the ‘buy’ button I’m having second thoughts about estimating the requirements wrong.

My new plan is to create a low cost (free tier perhaps) instance of the AMI we’re going to use, and to attach to the the EBS storage that I’m planning to use in production. I can then install all of the bits needed for the product to work, upload the application code I’m working on until the product is ready to launch, and then shut everything down (but keep the EBS volumes). When I come to performance testing, I can then fire up a on-demand EC2 instance, attach it to the EBS volumes I’ve created previously (including the root EBS volume) and test. If performance isn’t great I can keep changing on-demand instances until I get the correct performance, and I figured that if worst-case the EBS volume isn’t quick enough I can always delete it and try again with faster storage.

Cost-wise that’ll be slightly more expensive than my previous idea (EBS will have to persist for a while, and on-demand pricing of the EC2 instances) but it’ll give me flexibility to develop and test the product.

Does that sound sensible, or is there a better way to do this that I’m unaware of with my limited AWS knowledge?

Many thanks.

[Edit with updated information]

A few people asked for further information about the product - hopefully this will help.
The product/business is an I.T Security business that specializes in Social Engineering, specially Phishing. It allows companies to test their employees susceptibility to phishing attacks, and provides metrics to track various information produced from a phishing campaign. there are a number of existing businesses doing this already, mine will just be another one on the market. As I know someone will ask, Amazon have ok’d me running this on their infrastructure.

The product itself is built on a mix of MySQL and Java, utilizing Javascript and HTML5 on the front end to interact with the end user. To support the product, various open source tools (such as MTAs) are used, as well as commercial plugins. The entire platform runs on a single server currently, but I might move the DB over to a dedicated platform for it (such as Amazon RDS) in the near future.

The entire platform currently runs on Linux (although Windows may be an option in the future) and was developed on Amazon AMI Linux images, purely because this was the cheapest option at the time. It may be possible to move the product to another OS (such as Redhat) but any time spent changing tools and software takes me away from other development, so I’m keen not to migrate away from what I currently know unless there is an extremely good reason. I did have a go moving everything over to Microsoft’s Azure (as Bizmark gives me a load of free credits which will reduce costs) but a few problems it was decided in the end that migration and testing time on a new OS on a new platform wasn’t cost efficient against the AWS costs that were estimated. In the future I might change this, when I get from breathing room.

My background is Windows Sysadmin (from about 6 years ago) and Penetration Testing, with a smattering of development in there too. As such, I know the requirements of the product very well, but my skills in Linux administration, development best practice, and AWS are patchy. Up to this point I’ve managed to get everything tested and working, but as I’m nearer to launch I would rather not learn large amounts of new technology unless absolutely required.

The feedback so far has been great - and the general feeding is that for initial launch of the product I should run on-demand instances for the first few months to determine required performance. Once I have that roughly nailed a reserved instance would be ok, and if that gets maxed I should look at moving the DB to a dedicated host (or RDS) and bringing up a second instance of the application on another host, and putting it behind a elastic load balancer to scale up).

[/End Edit]


Related discussions:

You should state what your product is. If it’s an API I would say you might save money on lambda vs ec2 if the number of calls aren’t massive. Plus scaling might be cheaper vs an auto scaling group depending on what it is…

You’ll want to build the system so it scales horizontally. that way you can host it on multiple small instances and bring them up and down as the load changes, as opposed to having to pick a size that accounts for your ideal scenario. Also upgrades of a single instance require downtime but horizontal scaling can be done with no downtime.

You can also turn the instance on and off to save money.

Have you applied for AWS Activate? You can get $250 in AWS credits.

1/ I don’t know how low you value your time, but you can get $1500 in AWS credits with a $100 cert and 3 courses. See elsewhere in the sub, recently posted.

2/ I suggest getting a low interest, fixed rate credit card (they have some in the 8-9% range) and using that for your AWS bills, then pay it off slowish if you ever have a spike.

3/ I don’t know what you’re doing with EBS, but you can directly use a DB with RDS as well, or DynamoDB if you can handle the constraints. This may or may not be cheaper/more cost effective, depending on circumstances.

4/ the other posters have a good point that lambda can be really cheap if you can fit inside it. What stack are you on?

I like this. It might just be easier to bootstrap the app on lambda which is highly scalable and available. And when his app is profitable, he than design the infrastructure for a VPC to reduce costs.

Yeah plus I think the first million calls per month are not charged, so OP might never go over that.

get some automation in your code deployment process. Salt, Ansible, terraform. This will help in the long run when you bring more ppl on. You will know that who and what you will need to hire for. Plus if it takes longer before you hire it will be easier to maintain.

Along with what others have said here already, I recommend running Netflix’s ICE that will give you a very nice dashboard overview of your existing costs in AWS so you’re not surprised at the end of the month.

I would say definitely hold off on reserving all of it for now. Its not that expensive to bring up the instance just while you do your performance testing. Like the other posters said though, you would be better off putting it behind an elastic load balancer and scaling horizontally.
Depending on the kind of application you might also be able to run in on lamba or elastic beanstalk which will take care of all of the scaling for you.

You mention ebs volumes and faster storage. Be careful when provisioning the root volume not to mark it to delete on instance termination. Also the performance for the SSD EBS volumes depends on the size you specify when you create it. I think it is 3 IOPS per GB.

8-9% is low interest?! i remember why i dont have a credit card…

The value of amazon is how all their services work together. If you are not going to use elastic load balancers and IAM and S3, etc. etc. I would suggest going cheaper such as with digital ocean or linode or the like that just provide simpler VMs until you need to do things that will be under higher load. I know digital ocean now has a similar persistent block storage now.

It really depends on how much downtime you can tolerate, how big your db is, etc. on whether it will be better to start super cheaply with someone like DO or go AWS.

I am a big fan of AWS but costs can go up pretty quickly. That being said you should charge enough for your product that it’s viable. But think that you will probably need a staging system/db as well…

Just curious, do you know how long that’s been around? I ask only because the entrepreneurship 101 and 102 classes have been closed since 12/15/15. Do you know if they have an alternate now?

“Performance”, “Fast”, “Slow”, etc. is going to be dependent on your application and how it is used. You need a performance baseline to understand your performance requirements and costs, not to mention troubleshooting, SLAs, etc.

If no obsessive monitoring is taking place then you will be pissing in the wind. Make sure you are reviewing CloudWatch metrics and note that memory utilization and some disk metrics like space is not monitored by default so you have to add those.

You can trial and then use the free version of New Relic to get a better idea of what is going on in your application and then correlate with CloudWatch metrics. In other words, high and constant CPU utilization might be due to a bug in your app, low memory, or you really need more CPU. If you want to save money on running costs NEVER increase your instance sizes without knowing why.

Another caveat is that if you require redundancy with multi-AZ some services cannot run on t1 or t2 instances like Redis.

Another idea is to use CloudWatch alarms to shutdown some or all of your instances when idle.

Like others have mentioned, if you can avoid running instances and all the management work that comes with them and use something like Lambda that will save some bucks but you will need to invest time learning.

It might be worth mentioning that if you aren’t 100% sure that you want to be married to AWS don’t architect your application to be dependent on AWS only services like Lambda. It will bite you in the arse if you have to move off of AWS and re-architect your application.

You could also hire a consultant from somewhere like upwork.com at whatever rate you want to help out with some of this while you focus on coding.

This is great advice.

In my first few years, I would find out I need a different level of ec2-instance about 2 weeks after I took the plunge and bought a reserved instance. After 4 years I’m finally getting better at estimating my needs. There are a few quirks that can bite you after running one for a few months. You’ll see how /tmp and memory is structured. I spent too many hours trying to mess with an undersized instance just to make it work. Later it would max out and I would have to sell it on the market.

Now I’m much more comfortable buying 2 and 3 year reserved instances.

8-9% is low interest for a fixed rate card. It takes 8 years for any balance on that card to double.

Lines of Credit, variable APR cards, and more are lower interest rates, but harder to qualify for.

If your business cannot pay off 8% debt over a couple years, it’s not gaining revenue fast enough, and you should fold it, invest more, or get outside funding as it’s growing too slowly.

Debt is different for businesses than people, and you should have ways to take it on if desired.

  1. Yes, it is.

  2. Thats entirely irrelevant. The point is that you expect to pay it in full every month, avoiding interest charges entirely, while having a way to mitigate cost spikes without immediately threatening the availability of the service being paid for.

Great feedback, I’ve updated the post to reflect the product is and how it works.

Great feedback, I’ve updated the post to reflect the product is and how it works. Building the system to scale horizontally isn’t an option right now, but when the product is re-coded I’ll definately bare that in mind.

Great feedback, I’ve updated the post to reflect the product is and how it works. I completely agree with estimating my needs will be difficult, an ondemand instance for now sounds like a much better idea.