CloudFormation template for mining Ethereum (ETH) crypto currency on AWS GPU-enabled EC2 instances
-
Read about the profitability on AWS mining in my article Mining Bitcoin and other crypto on AWS first!
-
Reach out to me if you need help with any customisation, e.g. to add support for other crypto currencies, etc.
- Login to your AWS account and have your Ethereum wallet address ready
- Launch the stack in one or more of the cheapest regions. Sometimes spot capacity is not available in a particular region, in that case try a different one.
You will have an opportunity to check the stack details, enter the wallet address, etc, before the stack is launched.
- Spins up an AutoScaling Group with Spot Instances of the specified type (by default g4dn.xlarge)
- Use template-eth-default-vpc.yml if you want to spin up the instances in the Default VPC (most users).
- Use template-eth.yml if you have your own VPC that you want to use (advanced users). The Subnets must have direct or NAT access to the internet! Make sure that the VPC matches the Subnets selected!!
- Runs ethminer with the right options upon the instance start
Check out the instructions in my Medium article, it contains some important considerations. Alternatively, if you think you know what you are doing follow these instructions:
- Have your Ethereum wallet address ready. You can create a free one for example with Guarda if needed.
- Login to your AWS account.
- Click the Launch link or create the stack manually:
- Download the template-eth.yml template or template-eth-default-vpc.yml or clone this Github repository.
- In the AWS Console select one of the cheap regions (typically Oregon, N.Virginia, or Ohio)
- Create a CloudFormation stack from the template-eth-default-vpc.yml
- Check your mining progress on Ethermine dashboard.
- Note that it takes some time (15 ~ 30 mins) before your stats start to appear, and
- The reported hashrate speed ramps up slowly to the sustained rate over the first hour or so, I believe due to delays in reporting and some averaging.
- From my tests the hashrate reported by the
ethminer
process is correct and that's what you get paid out. Even if the dashboard speed is lower.
- When done delete the stack.
Michael Ludvig, you're welcome :)
Did you make some profit using this template and wish to say thanks? Any ETH amount sent to my address will be much appreciated: 0x99b36B44cf319c9E0ed4619ee2050B21ECac2c15
Thanks! :)