Rust

Fastly domains together with their TLS subscriptions.

Contents

use utopia_cdn::certificates::fastly::Fastly;
Rust
pub struct Fastly<C = DefaultClient>

Certificates for domains a Fastly service serves: the domain is added to the service through Fastly's domain management, then certified by a FastlyTls subscription sharing this provider's client.

A domain on another service moves to this one only once its certificate is issued, so a failure never moves a live hostname. A domain on a classic service version is left alone when issuing; deleting it clones and activates a version without it, polls until that version is deployed, then deletes its subscription.

Rust
use utopia_cdn::certificates::{Fastly, Provider};

let fastly = Fastly::new("api-token", "service-id").with_tls_configuration_id("tls-configuration-id");
fastly.issue_certificate("shop", "shop.example.com", None).await?;
Compiles in CI; needs a running service to execute.