Create AWS machine image which will be synced with testnet and have all software needed to deploy an sBTC signer on testnet.
1.1 Context & Purpose
We want to deploy the sBTC to testnet with a similar setup to how we're recommending things be deployed on mainnet. For that we will build an AMI with the necessary applications to run and configure an sBTC signer.
2. Technical Details:
The high level steps to do this is as follows:
Launch an EC2 instance.
Install the necessary applications, which includes bitcoin-core and stacks-core.
Make sure the chainstate is up-to-date on the machine.
Save the AMI.
We'd like to automate the above process, so I'd recommend using packer for the automated build process, but the first time around you would do this all manually first.
A more detailed breakdown of the steps that are necessary are as follows.
Get an AWS account with enough permissions to do the things that need doing.
Go to AWS website, launch EC2 instance.
c6i.xl with 100 GB HD. Use NVMe drives.
setup VPC security groups for SSHing into the machine.
Add in docker compose file and other config files. This docker compose file will have service entries for everything that is necessary on testnet.
Do docker compose pull to store the images on the machine.
Get the primary testnet chainstate data. This can be done by setting up an EBS volume and attaching it to the image or by pulling it from S3 as part of the AMI build process. The stacks chainstate data can be found here https://archive.hiro.so/testnet/stacks-blockchain/, but there isn't a similar archive for the bitcoin blockchain.
Do docker compose up. Not sure if we want to do this as part of the automated build process.
Build AMI from running EC2 instance.
Write files for automatically doing steps (2-10) using packer.
2.1 Acceptance Criteria:
[ ] We have an AMI with everything that is necessary for primary testnet.
[ ] We have a packer file that allows us to recreate the image if we need to do so.
Feature - AWS image
1. Description
Create AWS machine image which will be synced with testnet and have all software needed to deploy an sBTC signer on testnet.
1.1 Context & Purpose
We want to deploy the sBTC to testnet with a similar setup to how we're recommending things be deployed on mainnet. For that we will build an AMI with the necessary applications to run and configure an sBTC signer.
2. Technical Details:
The high level steps to do this is as follows:
We'd like to automate the above process, so I'd recommend using packer for the automated build process, but the first time around you would do this all manually first.
A more detailed breakdown of the steps that are necessary are as follows.
docker compose pull
to store the images on the machine.docker compose up
. Not sure if we want to do this as part of the automated build process.2.1 Acceptance Criteria:
3. Related Issues and Pull Requests (optional):