/** * VPC Discovery Module * * Discovers VPC resources from Quilt CloudFormation stack and validates * them against architecture requirements. * * @module scripts/discover-vpc */ /** * VPC discovery options */ export interface VpcDiscoveryOptions { /** CloudFormation stack ARN */ stackArn: string; /** AWS region */ region: string; /** AWS profile to use (optional) */ awsProfile?: string; } /** * Discovered subnet information */ export interface DiscoveredSubnet { /** Subnet ID */ subnetId: string; /** Availability zone */ availabilityZone: string; /** CIDR block */ cidrBlock: string; /** Whether subnet is public (has IGW route) */ isPublic: boolean; /** Whether subnet has NAT Gateway in route table */ hasNatGateway: boolean; /** Subnet name from tags */ name?: string; } /** * Discovered VPC information */ export interface DiscoveredVpc { /** VPC ID */ vpcId: string; /** VPC name from tags */ name?: string; /** CIDR block */ cidrBlock: string; /** AWS region */ region: string; /** Subnets in VPC */ subnets: DiscoveredSubnet[]; /** Security group IDs */ securityGroups: string[]; /** Whether VPC meets architecture requirements */ isValid: boolean; /** Validation error messages */ validationErrors: string[]; } /** * Discovers VPC resources from CloudFormation stack * * Quilt stacks don't create their own VPC - they use existing VPCs. * We discover the VPC by looking at the OutboundSecurityGroup output, * which references the VPC used by the stack. * * @param options - Discovery options * @returns Discovered VPC or null if not found */ export declare function discoverVpcFromStack(options: VpcDiscoveryOptions): Promise; //# sourceMappingURL=discover-vpc.d.ts.map