AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
New-ECSService-Cluster <String>-Alarms_AlarmName <String[]>-AwsvpcConfiguration_AssignPublicIp <AssignPublicIp>-AvailabilityZoneRebalancing <AvailabilityZoneRebalancing>-DeploymentConfiguration_BakeTimeInMinute <Int32>-CapacityProviderStrategy <CapacityProviderStrategyItem[]>-DesiredCount <Int32>-Alarms_Enable <Boolean>-DeploymentCircuitBreaker_Enable <Boolean>-ServiceConnectConfiguration_Enabled <Boolean>-EnableECSManagedTag <Boolean>-EnableExecuteCommand <Boolean>-HealthCheckGracePeriodSecond <Int32>-LaunchType <LaunchType>-DeploymentConfiguration_LifecycleHook <DeploymentLifecycleHook[]>-LoadBalancer <LoadBalancer[]>-LogConfiguration_LogDriver <LogDriver>-DeploymentConfiguration_MaximumPercent <Int32>-DeploymentConfiguration_MinimumHealthyPercent <Int32>-ServiceConnectConfiguration_Namespace <String>-LogConfiguration_Option <Hashtable>-PlacementConstraint <PlacementConstraint[]>-PlacementStrategy <PlacementStrategy[]>-PlatformVersion <String>-PropagateTag <PropagateTags>-Role <String>-Alarms_Rollback <Boolean>-DeploymentCircuitBreaker_Rollback <Boolean>-SchedulingStrategy <SchedulingStrategy>-LogConfiguration_SecretOption <Secret[]>-AwsvpcConfiguration_SecurityGroup <String[]>-ServiceName <String>-ServiceRegistry <ServiceRegistry[]>-ServiceConnectConfiguration_Service <ServiceConnectService[]>-DeploymentConfiguration_Strategy <DeploymentStrategy>-AwsvpcConfiguration_Subnet <String[]>-Tag <Tag[]>-TaskDefinition <String>-DeploymentController_Type <DeploymentControllerType>-VolumeConfiguration <ServiceVolumeConfiguration[]>-VpcLatticeConfiguration <VpcLatticeConfiguration[]>-ClientToken <String>-Select <String>-Force <SwitchParameter>-ClientConfig <AmazonECSConfig>
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DeploymentConfiguration_Alarms_AlarmNames |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DeploymentConfiguration_Alarms_Enable |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DeploymentConfiguration_Alarms_Rollback |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | NetworkConfiguration_AwsvpcConfiguration_AssignPublicIp |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | NetworkConfiguration_AwsvpcConfiguration_SecurityGroups |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | NetworkConfiguration_AwsvpcConfiguration_Subnets |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DeploymentConfiguration_DeploymentCircuitBreaker_Enable |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DeploymentConfiguration_DeploymentCircuitBreaker_Rollback |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DeploymentConfiguration_BakeTimeInMinutes |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | DeploymentConfiguration_LifecycleHooks |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | EnableECSManagedTags |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | HealthCheckGracePeriodSeconds |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | LoadBalancers |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ServiceConnectConfiguration_LogConfiguration_LogDriver |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ServiceConnectConfiguration_LogConfiguration_Options |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ServiceConnectConfiguration_LogConfiguration_SecretOptions |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | PlacementConstraints |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | PropagateTags |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ServiceConnectConfiguration_Services |
Required? | True |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ServiceRegistries |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Tags |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | VolumeConfigurations |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | VpcLatticeConfigurations |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
New-ECSService -ServiceName ecs-simple-service -TaskDefinition ecs-demo -DesiredCount 10This example command creates a service in your default cluster called `ecs-simple-service`. The service uses the `ecs-demo` task definition and it maintains 10 instantiations of that task.
$lb = @{
LoadBalancerName = "EC2Contai-EcsElast-S06278JGSJCM"
ContainerName = "simple-demo"
ContainerPort = 80
}
New-ECSService -ServiceName ecs-simple-service -TaskDefinition ecs-demo -DesiredCount 10 -LoadBalancer $lbThis example command creates a service behind a load balancer in your default cluster called `ecs-simple-service`. The service uses the `ecs-demo` task definition and it maintains 10 instantiations of that task.
AWS Tools for PowerShell: 2.x.y.z