1. Packages
  2. AWS Native
  3. API Docs
  4. ecs
  5. Service

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.79.0 published on Monday, Oct 2, 2023 by Pulumi

aws-native.ecs.Service

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.79.0 published on Monday, Oct 2, 2023 by Pulumi

    Resource Type definition for AWS::ECS::Service

    Create Service Resource

    new Service(name: string, args?: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                capacity_provider_strategy: Optional[Sequence[ServiceCapacityProviderStrategyItemArgs]] = None,
                cluster: Optional[str] = None,
                deployment_configuration: Optional[ServiceDeploymentConfigurationArgs] = None,
                deployment_controller: Optional[ServiceDeploymentControllerArgs] = None,
                desired_count: Optional[int] = None,
                enable_ecs_managed_tags: Optional[bool] = None,
                enable_execute_command: Optional[bool] = None,
                health_check_grace_period_seconds: Optional[int] = None,
                launch_type: Optional[ServiceLaunchType] = None,
                load_balancers: Optional[Sequence[ServiceLoadBalancerArgs]] = None,
                network_configuration: Optional[ServiceNetworkConfigurationArgs] = None,
                placement_constraints: Optional[Sequence[ServicePlacementConstraintArgs]] = None,
                placement_strategies: Optional[Sequence[ServicePlacementStrategyArgs]] = None,
                platform_version: Optional[str] = None,
                propagate_tags: Optional[ServicePropagateTags] = None,
                role: Optional[str] = None,
                scheduling_strategy: Optional[ServiceSchedulingStrategy] = None,
                service_connect_configuration: Optional[ServiceConnectConfigurationArgs] = None,
                service_name: Optional[str] = None,
                service_registries: Optional[Sequence[ServiceRegistryArgs]] = None,
                tags: Optional[Sequence[ServiceTagArgs]] = None,
                task_definition: Optional[str] = None)
    @overload
    def Service(resource_name: str,
                args: Optional[ServiceArgs] = None,
                opts: Optional[ResourceOptions] = None)
    func NewService(ctx *Context, name string, args *ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs? args = null, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: aws-native:ecs:Service
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Service Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Service resource accepts the following input properties:

    CapacityProviderStrategy List<Pulumi.AwsNative.Ecs.Inputs.ServiceCapacityProviderStrategyItem>
    Cluster string
    DeploymentConfiguration Pulumi.AwsNative.Ecs.Inputs.ServiceDeploymentConfiguration
    DeploymentController Pulumi.AwsNative.Ecs.Inputs.ServiceDeploymentController
    DesiredCount int
    EnableEcsManagedTags bool
    EnableExecuteCommand bool
    HealthCheckGracePeriodSeconds int
    LaunchType Pulumi.AwsNative.Ecs.ServiceLaunchType
    LoadBalancers List<Pulumi.AwsNative.Ecs.Inputs.ServiceLoadBalancer>
    NetworkConfiguration Pulumi.AwsNative.Ecs.Inputs.ServiceNetworkConfiguration
    PlacementConstraints List<Pulumi.AwsNative.Ecs.Inputs.ServicePlacementConstraint>
    PlacementStrategies List<Pulumi.AwsNative.Ecs.Inputs.ServicePlacementStrategy>
    PlatformVersion string
    PropagateTags Pulumi.AwsNative.Ecs.ServicePropagateTags
    Role string
    SchedulingStrategy Pulumi.AwsNative.Ecs.ServiceSchedulingStrategy
    ServiceConnectConfiguration Pulumi.AwsNative.Ecs.Inputs.ServiceConnectConfiguration
    ServiceName string
    ServiceRegistries List<Pulumi.AwsNative.Ecs.Inputs.ServiceRegistry>
    Tags List<Pulumi.AwsNative.Ecs.Inputs.ServiceTag>
    TaskDefinition string
    capacity_provider_strategy Sequence[ServiceCapacityProviderStrategyItemArgs]
    cluster str
    deployment_configuration ServiceDeploymentConfigurationArgs
    deployment_controller ServiceDeploymentControllerArgs
    desired_count int
    enable_ecs_managed_tags bool
    enable_execute_command bool
    health_check_grace_period_seconds int
    launch_type ServiceLaunchType
    load_balancers Sequence[ServiceLoadBalancerArgs]
    network_configuration ServiceNetworkConfigurationArgs
    placement_constraints Sequence[ServicePlacementConstraintArgs]
    placement_strategies Sequence[ServicePlacementStrategyArgs]
    platform_version str
    propagate_tags ServicePropagateTags
    role str
    scheduling_strategy ServiceSchedulingStrategy
    service_connect_configuration ServiceConnectConfigurationArgs
    service_name str
    service_registries Sequence[ServiceRegistryArgs]
    tags Sequence[ServiceTagArgs]
    task_definition str

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string
    ServiceArn string
    Id string

    The provider-assigned unique ID for this managed resource.

    Name string
    ServiceArn string
    id String

    The provider-assigned unique ID for this managed resource.

    name String
    serviceArn String
    id string

    The provider-assigned unique ID for this managed resource.

    name string
    serviceArn string
    id str

    The provider-assigned unique ID for this managed resource.

    name str
    service_arn str
    id String

    The provider-assigned unique ID for this managed resource.

    name String
    serviceArn String

    Supporting Types

    ServiceAwsVpcConfiguration, ServiceAwsVpcConfigurationArgs

    ServiceAwsVpcConfigurationAssignPublicIp, ServiceAwsVpcConfigurationAssignPublicIpArgs

    Disabled
    DISABLED
    Enabled
    ENABLED
    ServiceAwsVpcConfigurationAssignPublicIpDisabled
    DISABLED
    ServiceAwsVpcConfigurationAssignPublicIpEnabled
    ENABLED
    Disabled
    DISABLED
    Enabled
    ENABLED
    Disabled
    DISABLED
    Enabled
    ENABLED
    DISABLED
    DISABLED
    ENABLED
    ENABLED
    "DISABLED"
    DISABLED
    "ENABLED"
    ENABLED

    ServiceCapacityProviderStrategyItem, ServiceCapacityProviderStrategyItemArgs

    base Integer
    capacityProvider String
    weight Integer
    base number
    capacityProvider string
    weight number
    base Number
    capacityProvider String
    weight Number

    ServiceConnectClientAlias, ServiceConnectClientAliasArgs

    Port int
    DnsName string
    Port int
    DnsName string
    port Integer
    dnsName String
    port number
    dnsName string
    port int
    dns_name str
    port Number
    dnsName String

    ServiceConnectConfiguration, ServiceConnectConfigurationArgs

    ServiceConnectService, ServiceConnectServiceArgs

    ServiceDeploymentAlarms, ServiceDeploymentAlarmsArgs

    AlarmNames List<string>
    Enable bool
    Rollback bool
    AlarmNames []string
    Enable bool
    Rollback bool
    alarmNames List<String>
    enable Boolean
    rollback Boolean
    alarmNames string[]
    enable boolean
    rollback boolean
    alarm_names Sequence[str]
    enable bool
    rollback bool
    alarmNames List<String>
    enable Boolean
    rollback Boolean

    ServiceDeploymentCircuitBreaker, ServiceDeploymentCircuitBreakerArgs

    Enable bool
    Rollback bool
    Enable bool
    Rollback bool
    enable Boolean
    rollback Boolean
    enable boolean
    rollback boolean
    enable bool
    rollback bool
    enable Boolean
    rollback Boolean

    ServiceDeploymentConfiguration, ServiceDeploymentConfigurationArgs

    ServiceDeploymentController, ServiceDeploymentControllerArgs

    ServiceDeploymentControllerType, ServiceDeploymentControllerTypeArgs

    CodeDeploy
    CODE_DEPLOY
    Ecs
    ECS
    External
    EXTERNAL
    ServiceDeploymentControllerTypeCodeDeploy
    CODE_DEPLOY
    ServiceDeploymentControllerTypeEcs
    ECS
    ServiceDeploymentControllerTypeExternal
    EXTERNAL
    CodeDeploy
    CODE_DEPLOY
    Ecs
    ECS
    External
    EXTERNAL
    CodeDeploy
    CODE_DEPLOY
    Ecs
    ECS
    External
    EXTERNAL
    CODE_DEPLOY
    CODE_DEPLOY
    ECS
    ECS
    EXTERNAL
    EXTERNAL
    "CODE_DEPLOY"
    CODE_DEPLOY
    "ECS"
    ECS
    "EXTERNAL"
    EXTERNAL

    ServiceLaunchType, ServiceLaunchTypeArgs

    Ec2
    EC2
    Fargate
    FARGATE
    External
    EXTERNAL
    ServiceLaunchTypeEc2
    EC2
    ServiceLaunchTypeFargate
    FARGATE
    ServiceLaunchTypeExternal
    EXTERNAL
    Ec2
    EC2
    Fargate
    FARGATE
    External
    EXTERNAL
    Ec2
    EC2
    Fargate
    FARGATE
    External
    EXTERNAL
    EC2
    EC2
    FARGATE
    FARGATE
    EXTERNAL
    EXTERNAL
    "EC2"
    EC2
    "FARGATE"
    FARGATE
    "EXTERNAL"
    EXTERNAL

    ServiceLoadBalancer, ServiceLoadBalancerArgs

    ServiceLogConfiguration, ServiceLogConfigurationArgs

    ServiceNetworkConfiguration, ServiceNetworkConfigurationArgs

    ServicePlacementConstraint, ServicePlacementConstraintArgs

    ServicePlacementConstraintType, ServicePlacementConstraintTypeArgs

    DistinctInstance
    distinctInstance
    MemberOf
    memberOf
    ServicePlacementConstraintTypeDistinctInstance
    distinctInstance
    ServicePlacementConstraintTypeMemberOf
    memberOf
    DistinctInstance
    distinctInstance
    MemberOf
    memberOf
    DistinctInstance
    distinctInstance
    MemberOf
    memberOf
    DISTINCT_INSTANCE
    distinctInstance
    MEMBER_OF
    memberOf
    "distinctInstance"
    distinctInstance
    "memberOf"
    memberOf

    ServicePlacementStrategy, ServicePlacementStrategyArgs

    ServicePlacementStrategyType, ServicePlacementStrategyTypeArgs

    Binpack
    binpack
    Random
    random
    Spread
    spread
    ServicePlacementStrategyTypeBinpack
    binpack
    ServicePlacementStrategyTypeRandom
    random
    ServicePlacementStrategyTypeSpread
    spread
    Binpack
    binpack
    Random
    random
    Spread
    spread
    Binpack
    binpack
    Random
    random
    Spread
    spread
    BINPACK
    binpack
    RANDOM
    random
    SPREAD
    spread
    "binpack"
    binpack
    "random"
    random
    "spread"
    spread

    ServicePropagateTags, ServicePropagateTagsArgs

    Service
    SERVICE
    TaskDefinition
    TASK_DEFINITION
    ServicePropagateTagsService
    SERVICE
    ServicePropagateTagsTaskDefinition
    TASK_DEFINITION
    Service
    SERVICE
    TaskDefinition
    TASK_DEFINITION
    Service
    SERVICE
    TaskDefinition
    TASK_DEFINITION
    SERVICE
    SERVICE
    TASK_DEFINITION
    TASK_DEFINITION
    "SERVICE"
    SERVICE
    "TASK_DEFINITION"
    TASK_DEFINITION

    ServiceRegistry, ServiceRegistryArgs

    containerName String
    containerPort Integer
    port Integer
    registryArn String
    containerName string
    containerPort number
    port number
    registryArn string
    containerName String
    containerPort Number
    port Number
    registryArn String

    ServiceSchedulingStrategy, ServiceSchedulingStrategyArgs

    Daemon
    DAEMON
    Replica
    REPLICA
    ServiceSchedulingStrategyDaemon
    DAEMON
    ServiceSchedulingStrategyReplica
    REPLICA
    Daemon
    DAEMON
    Replica
    REPLICA
    Daemon
    DAEMON
    Replica
    REPLICA
    DAEMON
    DAEMON
    REPLICA
    REPLICA
    "DAEMON"
    DAEMON
    "REPLICA"
    REPLICA

    ServiceSecret, ServiceSecretArgs

    Name string
    ValueFrom string
    Name string
    ValueFrom string
    name String
    valueFrom String
    name string
    valueFrom string
    name String
    valueFrom String

    ServiceTag, ServiceTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.79.0 published on Monday, Oct 2, 2023 by Pulumi