Skip to content

TrustAnchor

Source: src/AWS/RolesAnywhere/TrustAnchor.ts

An IAM Roles Anywhere trust anchor. A trust anchor establishes trust between IAM Roles Anywhere and your certificate authority (CA) — either an uploaded PEM CA certificate bundle or a reference to an AWS Private CA. Workloads outside AWS authenticate with certificates issued by the CA in exchange for temporary AWS credentials.

Certificate Bundle Trust Anchor

const anchor = yield* RolesAnywhere.TrustAnchor("Anchor", {
certificateBundle: CA_CERTIFICATE_PEM,
});

AWS Private CA Trust Anchor

const anchor = yield* RolesAnywhere.TrustAnchor("Anchor", {
acmPcaArn: privateCa.certificateAuthorityArn,
});
const anchor = yield* RolesAnywhere.TrustAnchor("Anchor", {
certificateBundle: CA_CERTIFICATE_PEM,
enabled: false,
});
const anchor = yield* RolesAnywhere.TrustAnchor("Anchor", {
certificateBundle: CA_CERTIFICATE_PEM,
notificationSettings: [
{ event: "CA_CERTIFICATE_EXPIRY", threshold: "30 days" },
],
});