Coder Social home page Coder Social logo

r3drun3 / aws-monero-mining Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 95 KB

Terraform script to start one or more ec2 monero-mining instances. โ›๏ธ ๐Ÿช™ โ˜๏ธ

License: MIT License

HCL 31.17% Shell 68.83%
aws aws-ec2 ec2 monero terraform xmrig

aws-monero-mining's Introduction

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:


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.