needroleshere 0.4.0

Yet another AWS IAM Roles Anywhere helper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(clap::Args)]
pub struct UnbindArgs {
    #[clap(value_parser)]
    /// Name of a role binding to remove
    ///
    /// Cannot contain `.` and `/`.
    name: String,
}

#[tokio::main]
pub async fn run(config: &crate::config::Config, args: &UnbindArgs) -> Result<(), anyhow::Error> {
    let binding = crate::binding::RoleBinding::load(config, &args.name).await?;
    tracing::debug!(role_binding = ?binding);
    binding.remove(config).await?;
    Ok(())
}