AWS Native

Pulumi Official
Package maintained by Pulumi
v0.19.0 published on Wednesday, Jun 8, 2022 by Pulumi

Service

Resource Type definition for AWS::ECS::Service

Create a 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_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.ServiceCapacityProviderStrategyItemArgs>
Cluster string
DeploymentConfiguration Pulumi.AwsNative.ECS.Inputs.ServiceDeploymentConfigurationArgs
DeploymentController Pulumi.AwsNative.ECS.Inputs.ServiceDeploymentControllerArgs
DesiredCount int
EnableECSManagedTags bool
EnableExecuteCommand bool
HealthCheckGracePeriodSeconds int
LaunchType Pulumi.AwsNative.ECS.ServiceLaunchType
LoadBalancers List<Pulumi.AwsNative.ECS.Inputs.ServiceLoadBalancerArgs>
NetworkConfiguration Pulumi.AwsNative.ECS.Inputs.ServiceNetworkConfigurationArgs
PlacementConstraints List<Pulumi.AwsNative.ECS.Inputs.ServicePlacementConstraintArgs>
PlacementStrategies List<Pulumi.AwsNative.ECS.Inputs.ServicePlacementStrategyArgs>
PlatformVersion string
PropagateTags Pulumi.AwsNative.ECS.ServicePropagateTags
Role string
SchedulingStrategy Pulumi.AwsNative.ECS.ServiceSchedulingStrategy
ServiceName string
ServiceRegistries List<Pulumi.AwsNative.ECS.Inputs.ServiceRegistryArgs>
Tags List<Pulumi.AwsNative.ECS.Inputs.ServiceTagArgs>
TaskDefinition string

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

ServiceAwsVpcConfigurationAssignPublicIp

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

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

ServiceDeploymentCircuitBreaker

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

ServiceDeploymentController

ServiceDeploymentControllerType

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

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

ServiceNetworkConfiguration

ServicePlacementConstraint

ServicePlacementConstraintType

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

ServicePlacementStrategyType

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

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

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

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

ServiceTag

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
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0