Skip to content

Commit

Permalink
Minor formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ipopescu committed Sep 6, 2023
1 parent fc59838 commit 4f5b70a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 27 deletions.
40 changes: 20 additions & 20 deletions source/docs/casper/operators/aws-nodes/1-deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Using Docker Compose, create the following folder structure for the agnostic Doc
docker-compose --env-file ../docker/.env up --build -d
```

This command installs the tools and prerequisites necessary to execute the project in the container.
This command installs the tools and prerequisites necessary to execute the project in the container.

2. Modify the contents of the `.env` file and change the environment variables at your convenience.

Expand Down Expand Up @@ -139,35 +139,35 @@ To run the infrastructure as code (IaC), follow these steps.

2. Navigate to the directory that matches your environment.

* For Testnet, use:
* For Testnet, use:

```bash
cd terragrunt/environment/testnet/
```
```bash
cd terragrunt/environment/testnet/
```

* For Mainnet, use:
* For Mainnet, use:

```bash
cd terragrunt/environment/mainnet/
```
```bash
cd terragrunt/environment/mainnet/
```

3. Run the following command to validate the Terragrunt configuration. This command prepares the environment, downloads all providers, modules, and dependencies, and returns the number of resources to be provisioned. Finally, it validates all the configurations specified. Depending on your Internet connection and local environment, this operation may take around 30 minutes.

```bash
terragrunt run-all plan
```
```bash
terragrunt run-all plan
```

When running this command for the first time, answer `yes` to create the S3 bucket where Terraform files will be stored. Here is an example output:
When running this command for the first time, answer `yes` to create the S3 bucket where Terraform files will be stored. Here is an example output:

```bash
Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) yes
```
```bash
Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) Remote state S3 bucket casper-testnet-tfg-state does not exist or you don't have permission to access it. Would you like Terragrunt to create it? (y/n) yes
```

The command should display the following message:
The command should display the following message:

```bash
Terraform has been successfully initialized!
```
```bash
Terraform has been successfully initialized!
```

4. In this step, implement the planned infrastructure using the `terragrunt run-all apply` command, with or without a VPN server. This operation may take around 15 minutes, depending on the operator's Internet speed and local compute resources.
Expand Down
2 changes: 2 additions & 0 deletions source/docs/casper/operators/aws-nodes/5-open-vpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Follow these steps to configure the VPN Server:
<img src={"/image/operators/vpn-settings.png"} alt="VPN Settings"/>
</p>

<br></br>

:::note

To run the IaC with VPN enabled, you must use the Session Manager. By default, the SSH service is not enabled.
Expand Down
14 changes: 7 additions & 7 deletions source/docs/casper/operators/aws-nodes/6-troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ If the node restarts when synchronizing, usually every 30 minutes, and doesn't u

2. Get a `trusted hash` from the network using this command:

```bash
sudo sed -i "/trusted_hash =/c\trusted_hash = '$(casper-client get-block --node-address http://SYNCED_NODE_IP:7777/ -b BLOCK_NUMBER | jq -r .result.block.hash | tr -d '\n')'" /etc/casper/CASPER_VERSION/config.toml
```
```bash
sudo sed -i "/trusted_hash =/c\trusted_hash = '$(casper-client get-block --node-address http://SYNCED_NODE_IP:7777/ -b BLOCK_NUMBER | jq -r .result.block.hash | tr -d '\n')'" /etc/casper/CASPER_VERSION/config.toml
```

For example:
For example:

```bash
sudo sed -i "/trusted_hash =/c\trusted_hash = '$(casper-client get-block --node-address http://3.136.227.9:7777/ -b 997478 | jq -r .result.block.hash | tr -d '\n')'" /etc/casper/1_4_7/config.toml
```
```bash
sudo sed -i "/trusted_hash =/c\trusted_hash = '$(casper-client get-block --node-address http://3.136.227.9:7777/ -b 997478 | jq -r .result.block.hash | tr -d '\n')'" /etc/casper/1_4_7/config.toml
```

0 comments on commit 4f5b70a

Please sign in to comment.