import { ServiceConfig, Tags } from 'handel-extension-api'; import { AutoScalingConfig, ContainerConfig, HandlebarsEcsTemplateAutoScaling, HandlebarsEcsTemplateContainer, HandlebarsEcsTemplateLoadBalancer, HandlebarsEcsTemplateVolume, LoadBalancerConfig } from '../../common/ecs-shared-config-types'; export interface EcsServiceConfig extends ServiceConfig { containers: ContainerConfig[]; auto_scaling: AutoScalingConfig; cluster?: ClusterConfig; load_balancer?: LoadBalancerConfig; logging?: string; log_retention_in_days?: number; tags?: Tags; } export interface ClusterConfig { key_name?: string; instance_type?: string; } export interface HandlebarsEcsTemplateConfig { clusterName: string; stackName: string; instanceType: string; minInstances: number; maxInstances: number; ecsSecurityGroupId: string; amiImageId: string; userData: string; privateSubnetIds: string[]; publicSubnetIds: string[]; asgCooldown: string; minimumHealthyPercentDeployment: string; vpcId: string; serviceRoleName: string; policyStatements: any[]; deploymentSuffix: number; tags: Tags; containerConfigs: HandlebarsEcsTemplateContainer[]; autoScaling: HandlebarsEcsTemplateAutoScaling; oneOrMoreTasksHasRouting: boolean; logging: boolean; logGroupName: string; logRetentionInDays: number | null; loadBalancer?: HandlebarsEcsTemplateLoadBalancer; sshKeyName?: string; volumes?: HandlebarsEcsTemplateVolume[]; permissionsBoundary?: string; }