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.

13 lines (12 loc) • 844 B
import { Construct } from "constructs"; import * as ecs from "aws-cdk-lib/aws-ecs"; /** A copy of a public image (`host/path:tag`) in this account's own registry, made once at deploy. A task * that starts later (a restart, a replacement) then needs only AWS, not the public registry being reachable * at that moment. Every task definition using `image` must depend on `copy`, or its service can start a * task before the image is there. */ export declare function mirroredImage(scope: Construct, id: string, source: string): { image: ecs.ContainerImage; copy: Construct; }; /** The image for one task definition: straight from its public registry, or mirrored. */ export declare function taskImage(scope: Construct, id: string, source: string, mirror: boolean | undefined, taskDefinition: ecs.TaskDefinition): ecs.ContainerImage;