Migration of office LAN services to AWS

Hi There,

We’re currently looking into migrating our internal LAN services to the cloud. We were wondering what AWS products we should be looking at for migrating services such as "domain controllers, source control, CRM, VPNs, test environments and if it is actually advisable to do so considering the apparently pricey monthly bill we will be receiving. We have zero experience with AWS services so far and we’ve heard they’re not cheap. I was hoping to find ways and techniques to reduce the monthly cost once migrated… any suggestions on the best approach to start this endeavor?

Thank you very much for sharing your views.


Related discussions:

Hello,

First the services:

When it comes to test environments, you will have to build reusable scripted infrastructure with https://aws.amazon.com/cloudformation/

I generally recommend using fargate or ecs with docker containers instead of basic ec2 instances (cloud vm).

Aws can get expensive (that’s because it’s easy to add more resources like when your doing disaster recovery or high availability, when before aws you had to request hardware and wait for approvals and provisioning) or it can be cheaper, you can automate shutting down resources at night and such.

If you feel time is of the essence try and find a good consultant ( if no references are available, check to see they have some certification from aws )

Since your team has no experience with aws services, the first thing I’d suggest is getting some training.

You mention a bunch of services, start small and do a pilot of one service. Depending on complexity, test environments might be a good thing to look at first.

It be worthwhile to contact a aws sales rep for recommendations.

Counterpoint:

Agree.

I’d prefer to host a GitLab instance.

  • For CRM and VPN there are no aws services, but there are aws partners that offer them please see AWS Marketplace: Homepage ( try and find something a saas instead of ami, it’s software as a service, and you won’t have to manage much )

CRM, yep.

VPN: Think about the cost-path of the bandwidth for the VPN traffic and realize it might be better to put a solid appliance on your office WAN. I like Sophos.

Yeah… that’s what we use for source control. We have a dockerized Gitlab Instance which could be deployed either on EC2 (cloud VM) or ECS with some sort of persistent volume system based on S3 I guess. I’m kinda worried that just the traffic of cloning git repos and that the computation used by Gitlab CI could already bring the cost up to a non feasible point.

Regarding the VPNs, we have three remote office branches and I was thinking of providing all of the VPNs to our customer sites centrally on AWS.

Thumbs up for doing a pilot first. For some reason I did not actually think of contacting an AWS sales representative. Everything on the amazon site looks so “self-service” oriented that I kinda felt alone having no prior significant experience with their services. As you said, training is probably necessary. I’ll probably need to get sleep deprived for some time because the company I work for invests no money in training :frowning: . A very common thing in Italy, unfortunately.

This. You should also get a Solution Architect to come in and help. AWS has a set of free resources to help you on your journey as well as to make sure you’re doing the right things the most cost-effective way.

Hey there,

Your question is something I deal with a lot. It is something that is unique to every organization’s needs. Commonly we have assessments of team skills, leadership’s needs/wants, and then start to get into technical discussions.

The services you mentioned are all relatively simple to manage as cloud resources, and once you learn the corresponding vocabulary then it will become very easy to figure out a plan.

A few suggestions I have:

  • Do not immediately go with the first or most obvious solution.
  • Efficiency and optimization is more than what you are using, it is also what you are not using.
  • You will be moving into a distributed data center model, and this completely redefines your needs around connectivity. Understand layers 1-3 like you never have before, or face the consequences of outage time.
  • You can get into a mindset of “just another data center”, which in some ways is right, especially when you think that most people have issues getting things to work well with a single on-prem data center.

I highly recommend reading the AWS white papers and FAQs to understand how things are designed to work, and also the A Cloud Guru content is really good if you want just video lectures instead of reading about it only. I would also recommend engaging an AWS Partner/AWS Sales, because some things will not be simple, especially things that need to be resilient, like connectivity.

What /u/duckchaos said is also correct that keeping your organization’s service catalog limited and explicitly defined will also help you maintain sanity and implement things properly.

We’re a Windows shop and migrated almost all our hosting to AWS, but even still, we maintain a domain controller at the office, which also handles DHCP. In the event there’s a disconnect between us and AWS, I want the office to at least be able to continue using domain services and acquire new DHCP leases. That said, we do maintain a couple of DC’s in our PROD environment at AWS and a couple in our QA environment.

You might want to keep your domain controllers on site. If you want/need DCs in the cloud, do that in addition to keeping your on-prem DCs.

As for reducing costs: size your instances appropriately: you might be used to the specs of your on-prem physical boxes with two 8-core CPUs and 64 GB of RAM, but don’t make the mistake of setting up the equivalent in AWS (m5.4xlarge) for things that don’t need it. A small business domain controller runs fine on 2 cores and 8 GB of RAM (m5.large) or less.

AWS has a managed service for directory services, so make sure you look into that, too.

One super basic way to save on hourly costs is to turn off non-essential systems outside of business hours.

For example, you might not need your source control server (e.g. GitLab) to be available between 10 PM and 6 AM, so set something up to shut down the instance in the evening and start it again in the morning.

To make it easier to identify and manage non-critical services, you can use instance tagging, e.g. set up a tag called “critical” with a value of true or false. You can then run a command that will find all instances where critical = false and tell AWS to shut those down at once.

Another cost-saving example: if you use GitLab, you may or may not be using some of the nicer features that it offers, e.g. CI/CD or the container registry. If you’re only using it for plain git repo storage, you could migrate your repos to AWS CodeCommit. You’d lose all of GitLab’s built-in extra features, but again, if you’re only doing git repo storage, CodeCommit costs next to nothing and works fine. AWS also has services that replicate some of GitLab’s CI/CD functionality, e.g. AWS CodeBuild, AWS CodeDeploy, AWS CodePipeline. So that depends on your use case. Personally if I was already using GitLab, I’d just migrate the appliance to AWS because I wouldn’t want to set everything up from scratch using AWS services, and GitLab’s one-stop-shop nature is just nice.

Another way to save money is to use spot instances, but that is best suited to parallel compute applications, not for things where uptime/availability are important. If you’re not familiar with spot instances, it’s kind of like the stock market. The spot instance pricing is usually significantly lower than the on-demand pricing (e.g. for m5.large: $0.096/hour on demand, ~$0.03/hour spot). The catch is spot pricing fluctuates based on offer and demand. You set a price threshold you’re willing to pay, e.g. $0.05/hour for a given instance type, and you’ll pay the current rate, up to your threshold, for as long as the rate stays under your threshold. If the rate exceeds your threshold, all your spot instances will be terminated. This is why you probably shouldn’t use spot pricing for domain controllers, but maybe you can find a purpose for spot instances in your environment.

You can also set up billing alerts when your monthly bill exceeds a certain amount. Cost Explorer enables you to do forecasting on future costs based on past activity, which is helpful.

Above all I recommend you build redundancies into systems you put in AWS. Assume that anything can go down at any time and there’s nothing you can do about it, except build redundant, self-healing services.

There could be discount programs for training, worth asking sales. I sympathize with the no money/time for training, but there’s a good business case to be made and should be made to your management (e.g. the savings from not doing things the naive way will more than cover any training costs).

The cost you refer to usually involves jumping in to AWS with both feet and not considering your use case. You need to understand fully your business needs, what you get with your on-prem solutions, and what you want have that in-perm isn’t getting you. AWS services may have a cost but they also come with no operational overhead. However YOUR SOFTWARE you still have to operate whether it’s in AWS or on-prem.

Consider how you currently handle outages of your Internet provider. Do you have just one link or do you have multiple ISP’s for higher reliability? If you lose Internet you lose AWS. That should be your starting point.

Using AWS services requires a development team to learn AWS services, or else hiring developers who know them already. You will have a tough time sorting through resumes if you don’t know the ins and outs of AWS, or else you’ll need to spend a lot of time investing in development on top of AWS. Building a new team is really hard, and changing direction of a current team is also hard.

We’re currently looking into migrating our internal LAN services to the cloud.

Have you started with the “why” of this? What are you looking to gain?

I, being cheap, would advise to look at using AWS Lightsail to save on costs as much as possible. The true blue AWS fans here will say to spread out to the expensive services. Your choice. I’d get a consultant actually trained in all of AWS first, to advise and if they sound biased against Lightsail, I’d drop them and hire someone else.

Edit: And like cable companies, don’t be fooled by the free tier pricing, be sure how much it will actually cost the first year and beyond.

Depending on the size of your spend and support level there are varying levels of unofficial continuing support from a sanity checking and consulting standpoint, in addition to regular 24x7 support. But in the meantime you’ll want to get actual training, or at least have your admins sign up to acloud.guru for training and sign up for an account and leverage free-tier usage for your testing.

STEP 1: TURN ON BILLING ALERTS, ENABLE MFA, LOCK UP ROOT ACCOUNT TOKEN

Step 2: Get trained

Step 3: Inventory and rationalize your on-prem portfolio. ( https://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-identifying-your-migration-options-the-6-rs-ent311 )

Step 4: Build a landing pad ( https://www.slideshare.net/AmazonWebServices/how-can-i-build-a-landing-zone-extend-my-operations-into-aws-to-support-my-migration-aws-public-sector-summit-2017 and https://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-enabling-enterprise-migrations-creating-an-aws-landing-zone-arc314 )

Step 5: Deploy something simple (low complexity, low criticality) and iterate on it

Step 6: Repeat steps 3 through 5 and iterate bigger

Don’t worry about feeling alone. AWS can be very self-service, but there are also many resources out there to help. Definitely contact the sales rep. There will likely be one that your account falls under already. They can help coordinate Solutions Architects for a visit, or Training services, or even AWS Professional Services (Paid for consultant resources). Anyone in those areas will be happy to work with your company to work out the best path forward for you. Having been involved in multiple projects, there will be a good solution for you.