/// <summary> /// Gets cluster instances AWS arns /// </summary> /// <returns></returns> private async Task <List <string> > GetAwsClusterInstancesArns() { string awsRegion = context.AppSettings.SettingsConfig.AwsRegion; string awsCluster = context.AppSettings.SettingsConfig.AwsClusterName; AmazonECSClient ecs = new AmazonECSClient(Amazon.RegionEndpoint.GetBySystemName(awsRegion)); ecsModel.ListContainerInstancesRequest clusterRequest = new ecsModel.ListContainerInstancesRequest(); clusterRequest.Cluster = awsCluster; var items = await ecs.ListContainerInstancesAsync(clusterRequest); return(items.ContainerInstanceArns); }