Coder Social home page Coder Social logo

ethminingcfn's Introduction

Fully automated mining

alt text

1. Packer

Use Packer to build your own AMI for mining.

cp variables.example.json variables.json
# Edit variables.json with your information
packer build -var-file filename.json eth-rig-packer.json

2. Cloud Formation

The yml template is easier to edit, but CloudFormation doesn't support aliases, so you'll want to turn the yml back into json before you upload if you edit it.

If you want to use my AMI's built from this packer file, just use the CFN template as written. You'll want to register with Mining Pool Hub so you have a username to put in the parameters when you launch it.

From the AWS console, head over to CloudFormation, create a new stack and choose upload to S3 with the eth-mining-cfn.template file.

If you want to be really agressive, in CloudFormation use a StackSet to launch the stack in every region. You'll need to prepare you account to let StackSet control it, full details Here, but the gist is you'll allow StackSet in your "administrator" account to assume other roles. Then you'll Create a role in your "target" account that can be assumed from the "administrator" and has permissions to create the resources needed by your stack. I'm using a single account for "administrator" and "target".

That's a pain, so I created a CFN template for it, just create a stack from AWSCloudFormationStackSetSingleAccount.yml in this repo to create the required roles with a minimal policy.

Once that's all in place upload the template again, enter your AWS account number, and choose all four US Regions.

3. Profit!

At the time of writing, ETH was just over $30. I ran 8 GPUs at max $.25 per for 8 hours and earned... 0.00152448 ETH or about a buck fifty. Not so much profit, but I did learn quite a bit. I'll launch again at a max around $0.04/GPU/hr, that way I'll only need ETH to double to make a profit.

References

Donations

  • Etherium: 0x93ea57f8fA6F70394E84f4A9f746A17efe8a4AAD

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.