UNPKG

@fntio/infra-client

Version:

Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.

29 lines (28 loc) • 1.56 kB
import * as cdk from "aws-cdk-lib"; import { Construct } from "constructs"; import { IAccessPortalHub } from "./access-portal-hub"; export interface ConnectorStackProps extends cdk.StackProps { /** The hub this connector belongs to (`AccessPortalHub.fromAttributes`). */ readonly hub: IAccessPortalHub; /** Site (routing domain) this VPC joins — decides the control plane and * WHICH minter this account invokes (the site-selection security boundary). */ readonly site: string; /** VPC (in this stack's account) to make reachable — looked up at synth. */ readonly vpcId: string; /** CIDRs to advertise — usually just that VPC's CIDR. */ readonly routes: string[]; /** Container Insights on the connector cluster (Security Hub ECS.12). */ readonly containerInsights?: boolean; /** Run the connector from a copy of its image in this account's own registry (config * `network.mirrorImages`). Default false. */ readonly mirrorImages?: boolean; /** Tells this VPC from the account's others (config `connectorVpcs[].name`): * suffixes the node hostname and the SG-manager/resolver function names, so * two stacks in one account never collide. Omit for the one unnamed VPC. */ readonly name?: string; } /** One per connector VPC, deployed with that account's credentials; the * flexible path uses TailnetConnector + SgManager directly instead. */ export declare class ConnectorStack extends cdk.Stack { constructor(scope: Construct, id: string, props: ConnectorStackProps); }