Skip to content

Instantly share code, notes, and snippets.

@mludvig
Last active June 1, 2022 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mludvig/d21b03baf53a5499626f1a786af7b6f7 to your computer and use it in GitHub Desktop.
Save mludvig/d21b03baf53a5499626f1a786af7b6f7 to your computer and use it in GitHub Desktop.
Deploy AWS Ethereum Miner in all available regions
# 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