Skip to content

Terraform script to start one or more ec2 monero-mining instances. ⛏️ 🪙 ☁️

License

Notifications You must be signed in to change notification settings

R3DRUN3/aws-monero-mining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS MONERO MINING

Terraform script to start one or more EC2 monero-mining (XMRIG) instances. ⛏️ 🪙 ☁️


Disclaimer

This repo is intended only as a terraform learning exercise applied to the aws cloud platform.

  • The author does not want to incentivize or promote monero mining.
  • The author does not promise any financial gain from mining monero on the contrary, at present time he does not recommend using it for economic purposes as the price charged by the provider for the use of the resources could be higher than the mining gain.

The author also assumes no responsibility for any weaponization of this repository in order to exploit other people's aws accounts for monero mining.

Prerequisites


Note: This script has been tested on Ubuntu 22.04 LTS

Instructions

clone this repo:

git clone https://github.com/R3DRUN3/aws-monero-mining.git \
&& cd aws-monero-mining

Open the ./xmrig/run-xmrig.sh file and modify it by inserting your monero wallet and the desired mining pool,
alternatively you can create a new json configuration here.

You can also modify the vars.tf file to change some variables according to your needs,
for example yuo can change the ec2 instance type (the default is a very resources-constrained machine), the number of instances etc.

Launch the Terraform provisioning:

terraform init && terraform apply -auto-approve

The whole procedure takes a few minutes
In the end you can see the generated ec2 instances from your aws console:


or via aws-cli with the following command:

aws ec2 describe-instances

If you open one of the instances and inspect resources'usage with the htop command,
you can see that xmrig is running and mining new monero!


Based upon the mining pool that you put in your configuration, you should be able to see your current hashrate from the pool website:


About

Terraform script to start one or more ec2 monero-mining instances. ⛏️ 🪙 ☁️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published