Rust Client for Multi Language EKS Blueprints for cdk
Run the example
To run the example, first start the server from https://github.com/aws-quickstart/cdk-eks-blueprints/tree/blueprints-api-support
Then run the rust example by cloning this repository and running with make, cargo is required
How to use as a package
Create a new rust project
Import the sdk and other dependencies
Add this to a main.rs
file
use ;
use Channel;
async
async
Add function calls to the gRPC server in the build function to build your EKS Blueprint
Run the server
Run your code
From the server, deploy your EKS Blueprint
Contributing
Publishing
Whenever changes are made to the protobufs, a new package will need to be released
To publish the package, first make an account on crates.io, and you must be added to the eks-blueprints-rust-sdk project
You will need an API Token. Once you have this token, use it to login locally with this command.
Run this command to build and publish the rust sdk crate (NOTE: It is recommended to run cargo package
first to ensure the .crate
file isn’t over 10MB)
Changes to packaging and publishing can be made by editing the Cargo.toml
file