@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
14 lines (13 loc) • 985 B
TypeScript
import { TargetRoleSpec } from "./constructs/web-identity";
export interface TargetAccountTemplateProps {
/** The hub's issuer URL — the same value every TargetAccountStack is given. */
readonly issuerUrl: string;
readonly roles: readonly TargetRoleSpec[];
}
/** The target-account trust as a plain CloudFormation template that deploys into any account with nothing
* prepared there: no account id baked in (the role-scoped sub pin resolves through `AWS::AccountId`), a native
* `AWS::IAM::OIDCProvider` instead of CDK's asset-backed custom resource, no bootstrap bucket, no parameters.
* For accounts the hub has never seen — a StackSet over an OU, or the account-creation pipeline's
* CloudFormation step; an account that already runs `Roles-<acct>` keeps that stack. The hub registers the
* account afterwards with the role names used here. */
export declare function synthTargetAccountTemplate(props: TargetAccountTemplateProps): Record<string, unknown>;