Configuration
To configure the environment variables for use with the render_cdk, you need to set the API_KEY environment variable. You can do this by creating a .env file in the root of your project with the following content:
API_KEY=rnd_xxxxXXXXxxxxXXXXxxxXX
Make sure to replace rnd_xxxxXXXXxxxxXXXXxxxXX with your actual Render API key.
Getting Started
Prerequisites
Before using render_cdk, ensure you have the following installed:
- Rust (latest stable version recommended)
- Cargo (comes with Rust)
Installation
Add render_cdk to your Cargo.toml:
[]
= "0.0.4"
Usage
Here is a basic example of how to use the render_cdk crate to interact with Render's API:
use EnvironmentManager;
Service Manager
Code Sample
Here's a sample using the list_all_services method from the ServiceManager:
use *;
use *;
use main;
async