Deploying the Blockscout Infrastructure
Last updated
Was this helpful?
Last updated
Was this helpful?
Deployment with Terraform 12 is unstable due to these bugs: , , , . Please use TF 11.11 - 11.14 and following branch for deployment
Go to if you already have an infrastructure and simply want to install or update your BlockScout instance.
1) Check that all are installed with the correct version number.
2) Create the AWS access key and secret access key for user with sufficient permissions;
3) Create hosts
file from hosts.example
(mv hosts.example hosts
) and adjust to your needs. Each host should represent each BlockScout instance you want to deploy.
The simplest hosts
file with one BlockScout instance will look like:
Where [group]
is a group name, which will be interpreted as a prefix
for all created resources and host
is a name of BlockScout instance.
4) For each host merge infrastructure.yml.example
and all.yml.example
config template files in host_vars
folder into single config file with the same name as in hosts
file:
5) For each group merge infrastructure.yml.example
and all.yml.example
config template files in group_vars
folder into single config file with the same name as group name in hosts
file:
6) at group_vars
and host_vars
.
Also, if you need to distribute variables across all the hosts/groups, you can add these variables to the group_vars/all.yml
file.
More on variable precedence => .
7) Run ansible-playbook deploy_infra.yml
During the deployment the "diffs didn't match" error may occur, it will be ignored automatically. If Ansible play recap shows 0 failed plays, then the deployment was successful despite the error.
Optionally, you may want to check the variables that were uploaded to the at AWS Console.