You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-3Lines changed: 43 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -375,7 +375,47 @@ This section outlines the repository’s directory structure to help you navigat
375
375
```
376
376
- For more details, see the AWS Secrets Manager documentation: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html.
377
377
378
-
3. **IAM Role (`TerraformCloudRole`)**:
378
+
3. **Configure Blockchain Network**:
379
+
Set the blockchain network for the `blockchain-monitor` and `ai-agent` services using the `NETWORK` environment variable. Supported networks are:
380
+
381
+
- **mainnet**: Ethereum mainnet (production, requires Infura API key with mainnet access).
382
+
- **sepolia**: Sepolia testnet (default, recommended for testing).
383
+
- **holesky**: Holesky testnet (alternative testnet for validator and staking tests).
384
+
- **hoodi**: Hoodi testnet (new testnet for Pectra upgrade testing).
385
+
- **local**: Local Ethereum node (e.g., Hardhat, Ganache) for development.
386
+
387
+
<table>
388
+
<tr>
389
+
<th>⚠️ⓘ❗ <b>NOTE</b></th>
390
+
</tr>
391
+
<tr>
392
+
<td width="33%"">
393
+
Obtain an Infura API key by creating an account at <b><i>[infura.io](https://infura.io) (MetaMask wallet login supported)</b></i>. Avoid using MetaMask’s default Infura key due to rate limits, as it is shared and heavily restricted. Using mainnet incurs <b><i>higher Infura API costs</b></i> and interacts with <b><i>real</b></i> Ethereum transactions. Ensure your Infura API key supports mainnet and testnet access and use <b><i>cautiously</b></i> in production environments.
@@ -391,7 +431,7 @@ This section outlines the repository’s directory structure to help you navigat
391
431
```
392
432
- Permissions: EKS, EC2, ELB, ECR, IAM, S3, RDS.
393
433
394
-
4. **Optimize Uploads**:
434
+
5. **Optimize Uploads**:
395
435
- To optimize uploads in Terraform Cloud, it’s recommended to create a `.terraformignore` file in the project root to exclude unnecessary files, reducing upload size and speeding up Terraform runs. Create the file with the following content:
396
436
```hcl
397
437
# .terraformignore
@@ -573,7 +613,7 @@ Infrastructure is managed in the `terraform/` folder:
573
613
- Check security group allows EKS access (port 3306 for MySQL, 5432 for PostgreSQL).
574
614
575
615
> [!IMPORTANT]
576
-
> - **Ethereum Testnet**: Uses Infura for blockchain data.
616
+
> - **Ethereum Networks**: Supports `mainnet`, `Sepolia` (default), `Holesky`, `Hoodi`, and `local` networks. Set `NETWORK` environment variable to configure (see **Setup > Configure Blockchain Network**).
577
617
> - **CI/CD**: Jenkins pipeline builds/pushes images to ECR and deploys to EKS.
578
618
> - **Health Checks**: Ensure probes are configured per service.
579
619
> - **Region**: `eu-central-1` (Frankfurt) is the default region for all AWS resources (EKS, RDS, S3, Secrets Manager). To use a different region, update AWS_DEFAULT_REGION in Terraform Cloud variables or terraform/backend.tf. Ensure consistency across resources to avoid cross-region latency or costs.
0 commit comments