Connect Using Terraform
Integrate your cloud infrastructure with RAD Security using Terraform to leverage enhanced threat detection capabilities and ensure your cloud environments adhere to stringent compliance frameworks.Prerequisites
Before initiating the cloud connection process, ensure you have:- An active RAD Security account
- Terraform installed on your local machine
- An optional cloud connect key
Connection Setup
- Navigate to the Settings icon in your RAD Security dashboard
- Find the
Cloud Providerssection - Click on the desired cloud provider you wish to connect to generate your configuration
Terraform Setup
A Terraform snippet will be displayed on the screen. This is to be used in your Terraform configuration file main.tf. Copy the Terraform snippet by clicking on the copy icon in the top right corner and paste the copied code into your main.tf file.Cloud Connect Key Configuration
To automatically generate and input your cloud connect key into the configuration, you can provision a key within the UI by clicking onGenerate a cloud plugin key.
Alternatively, you can manually provision cloud keys by clicking on the “Cloud Provisioning Keys” tab in Settings → Cloud Providers, and then clicking on the “New cloud provisioning key” button. You can then use those credentials in your variables.tf.
There might be additional variables that are needed based on the cloud provider:
Security Best Practice: We do not recommend storing actual credentials in the file. Use your standard secrets approach, environment variables, or prompt for these values when applying Terraform. This site contains some recommendations for good practices with secrets.
Terraform Execution
Run the following Terraform commands in your terminal:1. Initialize Terraform
2. Plan Changes
3. Apply Configuration
Verification
After executing the Terraform code:- Click ‘Continue’ in the RAD Security UI
- Monitor the account screen for the appearance of your cloud account
- Confirm the integration has been successful
Supported Cloud Providers
Terraform integration is available for:- Amazon Web Services (AWS)
- Microsoft Azure
- Google Cloud Platform (GCP)
- Linode
Next Steps
After successful Terraform integration:- Review Security Findings: Check the Evidence Room for any immediate security issues
- Configure Alerts: Set up notifications for critical security events
- Enable Compliance Scanning: Activate compliance monitoring for your industry standards
- Set Up Workflows: Create automated responses to security events