This directory contains Terraform configurations for deploying the Axelar-Starknet relayer infrastructure across different environments.
terraform/
├── environments/
│ ├── mainnet/ # Production mainnet configuration
│ └── testnet/ # Testnet environment configuration
- OpenTofu >= 1.0
- Appropriate cloud provider credentials configured
- Access to the target deployment environment
Navigate to the appropriate environment directory and initialize OpenTofu/Terraform:
cd environments/testnet # or mainnet
tofu initReview the changes that will be applied:
tofu planDeploy the infrastructure:
tofu applyTo tear down the infrastructure:
tofu destroyEach environment directory contains its own main.tf file with environment-specific configurations. These configurations include:
- Network settings
- Resource allocations
- Environment-specific variables
- Service configurations
Opentofu state files should be stored remotely in a secure backend (e.g., GCS, S3) for production environments. Configure the backend in the main.tf file of each environment.
- Never commit sensitive values (API keys, passwords) to version control
- Use OpenTofu/Terraform variables or secret management services for sensitive data
- Ensure proper IAM roles and permissions are configured
- Review and follow cloud provider security best practices