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.