Deploy AWS Ethereum Miner in all available regions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create AWS Ethereum Miner in all available regions | |
# See https://github.com/mludvig/aws-ethereum-miner | |
ETH_WALLET=0x99b36B44cf319c9E0ed4619ee2050B21ECac2c15 | |
HASHRATE=1000 # Desired hashrate in MH/s, i.e. 1000 = 1 GH/s | |
REGIONS=$(aws ec2 describe-regions --query 'Regions[].RegionName' --output text) | |
for REGION in ${REGIONS}; do | |
echo "== ${REGION} ==" | |
aws --region ${REGION} cloudformation create-stack \ | |
--stack-name ethminer --capabilities CAPABILITY_IAM \ | |
--template-url https://s3.us-west-2.amazonaws.com/cnl4uehyq6/ethminer/template-eth-default-vpc.yml \ | |
--parameters ParameterKey=EthWallet,ParameterValue=${ETH_WALLET} \ | |
ParameterKey=PricingPlan,ParameterValue=spot \ | |
ParameterKey=Hashrate,ParameterValue=${HASHRATE} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment