AWS Native is in preview. AWS Classic is fully supported.
aws-native.ecs.Service
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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:
- Capacity
Provider List<Pulumi.Strategy Aws Native. Ecs. Inputs. Service Capacity Provider Strategy Item> - Cluster string
- Deployment
Configuration Pulumi.Aws Native. Ecs. Inputs. Service Deployment Configuration - Deployment
Controller Pulumi.Aws Native. Ecs. Inputs. Service Deployment Controller - Desired
Count int - bool
- Enable
Execute boolCommand - Health
Check intGrace Period Seconds - Launch
Type Pulumi.Aws Native. Ecs. Service Launch Type - Load
Balancers List<Pulumi.Aws Native. Ecs. Inputs. Service Load Balancer> - Network
Configuration Pulumi.Aws Native. Ecs. Inputs. Service Network Configuration - Placement
Constraints List<Pulumi.Aws Native. Ecs. Inputs. Service Placement Constraint> - Placement
Strategies List<Pulumi.Aws Native. Ecs. Inputs. Service Placement Strategy> - Platform
Version string - Pulumi.
Aws Native. Ecs. Service Propagate Tags - Role string
- Scheduling
Strategy Pulumi.Aws Native. Ecs. Service Scheduling Strategy - Service
Connect Pulumi.Configuration Aws Native. Ecs. Inputs. Service Connect Configuration - Service
Name string - Service
Registries List<Pulumi.Aws Native. Ecs. Inputs. Service Registry> - List<Pulumi.
Aws Native. Ecs. Inputs. Service Tag> - Task
Definition string
- Capacity
Provider []ServiceStrategy Capacity Provider Strategy Item Args - Cluster string
- Deployment
Configuration ServiceDeployment Configuration Args - Deployment
Controller ServiceDeployment Controller Args - Desired
Count int - bool
- Enable
Execute boolCommand - Health
Check intGrace Period Seconds - Launch
Type ServiceLaunch Type - Load
Balancers []ServiceLoad Balancer Args - Network
Configuration ServiceNetwork Configuration Args - Placement
Constraints []ServicePlacement Constraint Args - Placement
Strategies []ServicePlacement Strategy Args - Platform
Version string - Service
Propagate Tags - Role string
- Scheduling
Strategy ServiceScheduling Strategy - Service
Connect ServiceConfiguration Connect Configuration Args - Service
Name string - Service
Registries []ServiceRegistry Args - []Service
Tag Args - Task
Definition string
- capacity
Provider List<ServiceStrategy Capacity Provider Strategy Item> - cluster String
- deployment
Configuration ServiceDeployment Configuration - deployment
Controller ServiceDeployment Controller - desired
Count Integer - Boolean
- enable
Execute BooleanCommand - health
Check IntegerGrace Period Seconds - launch
Type ServiceLaunch Type - load
Balancers List<ServiceLoad Balancer> - network
Configuration ServiceNetwork Configuration - placement
Constraints List<ServicePlacement Constraint> - placement
Strategies List<ServicePlacement Strategy> - platform
Version String - Service
Propagate Tags - role String
- scheduling
Strategy ServiceScheduling Strategy - service
Connect ServiceConfiguration Connect Configuration - service
Name String - service
Registries List<ServiceRegistry> - List<Service
Tag> - task
Definition String
- capacity
Provider ServiceStrategy Capacity Provider Strategy Item[] - cluster string
- deployment
Configuration ServiceDeployment Configuration - deployment
Controller ServiceDeployment Controller - desired
Count number - boolean
- enable
Execute booleanCommand - health
Check numberGrace Period Seconds - launch
Type ServiceLaunch Type - load
Balancers ServiceLoad Balancer[] - network
Configuration ServiceNetwork Configuration - placement
Constraints ServicePlacement Constraint[] - placement
Strategies ServicePlacement Strategy[] - platform
Version string - Service
Propagate Tags - role string
- scheduling
Strategy ServiceScheduling Strategy - service
Connect ServiceConfiguration Connect Configuration - service
Name string - service
Registries ServiceRegistry[] - Service
Tag[] - task
Definition string
- capacity_
provider_ Sequence[Servicestrategy Capacity Provider Strategy Item Args] - cluster str
- deployment_
configuration ServiceDeployment Configuration Args - deployment_
controller ServiceDeployment Controller Args - desired_
count int - bool
- enable_
execute_ boolcommand - health_
check_ intgrace_ period_ seconds - launch_
type ServiceLaunch Type - load_
balancers Sequence[ServiceLoad Balancer Args] - network_
configuration ServiceNetwork Configuration Args - placement_
constraints Sequence[ServicePlacement Constraint Args] - placement_
strategies Sequence[ServicePlacement Strategy Args] - platform_
version str - Service
Propagate Tags - role str
- scheduling_
strategy ServiceScheduling Strategy - service_
connect_ Serviceconfiguration Connect Configuration Args - service_
name str - service_
registries Sequence[ServiceRegistry Args] - Sequence[Service
Tag Args] - task_
definition str
- capacity
Provider List<Property Map>Strategy - cluster String
- deployment
Configuration Property Map - deployment
Controller Property Map - desired
Count Number - Boolean
- enable
Execute BooleanCommand - health
Check NumberGrace Period Seconds - launch
Type "EC2" | "FARGATE" | "EXTERNAL" - load
Balancers List<Property Map> - network
Configuration Property Map - placement
Constraints List<Property Map> - placement
Strategies List<Property Map> - platform
Version String - "SERVICE" | "TASK_DEFINITION"
- role String
- scheduling
Strategy "DAEMON" | "REPLICA" - service
Connect Property MapConfiguration - service
Name String - service
Registries List<Property Map> - List<Property Map>
- task
Definition 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
- Service
Arn string
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Service
Arn string
- id String
The provider-assigned unique ID for this managed resource.
- name String
- service
Arn String
- id string
The provider-assigned unique ID for this managed resource.
- name string
- service
Arn 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
- service
Arn String
Supporting Types
ServiceAwsVpcConfiguration, ServiceAwsVpcConfigurationArgs
- Assign
Public Pulumi.Ip Aws Native. Ecs. Service Aws Vpc Configuration Assign Public Ip - Security
Groups List<string> - Subnets List<string>
- Assign
Public ServiceIp Aws Vpc Configuration Assign Public Ip - Security
Groups []string - Subnets []string
- assign
Public ServiceIp Aws Vpc Configuration Assign Public Ip - security
Groups List<String> - subnets List<String>
- assign
Public ServiceIp Aws Vpc Configuration Assign Public Ip - security
Groups string[] - subnets string[]
- assign_
public_ Serviceip Aws Vpc Configuration Assign Public Ip - security_
groups Sequence[str] - subnets Sequence[str]
- assign
Public "DISABLED" | "ENABLED"Ip - security
Groups List<String> - subnets List<String>
ServiceAwsVpcConfigurationAssignPublicIp, ServiceAwsVpcConfigurationAssignPublicIpArgs
- Disabled
- DISABLED
- Enabled
- ENABLED
- Service
Aws Vpc Configuration Assign Public Ip Disabled - DISABLED
- Service
Aws Vpc Configuration Assign Public Ip Enabled - ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- Disabled
- DISABLED
- Enabled
- ENABLED
- DISABLED
- DISABLED
- ENABLED
- ENABLED
- "DISABLED"
- DISABLED
- "ENABLED"
- ENABLED
ServiceCapacityProviderStrategyItem, ServiceCapacityProviderStrategyItemArgs
- Base int
- Capacity
Provider string - Weight int
- Base int
- Capacity
Provider string - Weight int
- base Integer
- capacity
Provider String - weight Integer
- base number
- capacity
Provider string - weight number
- base int
- capacity_
provider str - weight int
- base Number
- capacity
Provider String - weight Number
ServiceConnectClientAlias, ServiceConnectClientAliasArgs
ServiceConnectConfiguration, ServiceConnectConfigurationArgs
ServiceConnectService, ServiceConnectServiceArgs
- port
Name String - client
Aliases List<ServiceConnect Client Alias> - discovery
Name String - ingress
Port IntegerOverride
- port
Name string - client
Aliases ServiceConnect Client Alias[] - discovery
Name string - ingress
Port numberOverride
- port
Name String - client
Aliases List<Property Map> - discovery
Name String - ingress
Port NumberOverride
ServiceDeploymentAlarms, ServiceDeploymentAlarmsArgs
- Alarm
Names List<string> - Enable bool
- Rollback bool
- Alarm
Names []string - Enable bool
- Rollback bool
- alarm
Names List<String> - enable Boolean
- rollback Boolean
- alarm
Names string[] - enable boolean
- rollback boolean
- alarm_
names Sequence[str] - enable bool
- rollback bool
- alarm
Names List<String> - enable Boolean
- rollback Boolean
ServiceDeploymentCircuitBreaker, ServiceDeploymentCircuitBreakerArgs
ServiceDeploymentConfiguration, ServiceDeploymentConfigurationArgs
ServiceDeploymentController, ServiceDeploymentControllerArgs
ServiceDeploymentControllerType, ServiceDeploymentControllerTypeArgs
- Code
Deploy - CODE_DEPLOY
- Ecs
- ECS
- External
- EXTERNAL
- Service
Deployment Controller Type Code Deploy - CODE_DEPLOY
- Service
Deployment Controller Type Ecs - ECS
- Service
Deployment Controller Type External - EXTERNAL
- Code
Deploy - CODE_DEPLOY
- Ecs
- ECS
- External
- EXTERNAL
- Code
Deploy - 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
- Service
Launch Type Ec2 - EC2
- Service
Launch Type Fargate - FARGATE
- Service
Launch Type External - 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
- Container
Name string - Container
Port int - Load
Balancer stringName - Target
Group stringArn
- Container
Name string - Container
Port int - Load
Balancer stringName - Target
Group stringArn
- container
Name String - container
Port Integer - load
Balancer StringName - target
Group StringArn
- container
Name string - container
Port number - load
Balancer stringName - target
Group stringArn
- container_
name str - container_
port int - load_
balancer_ strname - target_
group_ strarn
- container
Name String - container
Port Number - load
Balancer StringName - target
Group StringArn
ServiceLogConfiguration, ServiceLogConfigurationArgs
- Log
Driver string - Options interface{}
- Secret
Options []ServiceSecret
- log
Driver String - options Object
- secret
Options List<ServiceSecret>
- log
Driver string - options any
- secret
Options ServiceSecret[]
- log
Driver String - options Any
- secret
Options List<Property Map>
ServiceNetworkConfiguration, ServiceNetworkConfigurationArgs
ServicePlacementConstraint, ServicePlacementConstraintArgs
ServicePlacementConstraintType, ServicePlacementConstraintTypeArgs
- Distinct
Instance - distinctInstance
- Member
Of - memberOf
- Service
Placement Constraint Type Distinct Instance - distinctInstance
- Service
Placement Constraint Type Member Of - memberOf
- Distinct
Instance - distinctInstance
- Member
Of - memberOf
- Distinct
Instance - distinctInstance
- Member
Of - memberOf
- DISTINCT_INSTANCE
- distinctInstance
- MEMBER_OF
- memberOf
- "distinct
Instance" - distinctInstance
- "member
Of" - memberOf
ServicePlacementStrategy, ServicePlacementStrategyArgs
ServicePlacementStrategyType, ServicePlacementStrategyTypeArgs
- Binpack
- binpack
- Random
- random
- Spread
- spread
- Service
Placement Strategy Type Binpack - binpack
- Service
Placement Strategy Type Random - random
- Service
Placement Strategy Type Spread - 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
- Task
Definition - TASK_DEFINITION
- Service
Propagate Tags Service - SERVICE
- Service
Propagate Tags Task Definition - TASK_DEFINITION
- Service
- SERVICE
- Task
Definition - TASK_DEFINITION
- Service
- SERVICE
- Task
Definition - TASK_DEFINITION
- SERVICE
- SERVICE
- TASK_DEFINITION
- TASK_DEFINITION
- "SERVICE"
- SERVICE
- "TASK_DEFINITION"
- TASK_DEFINITION
ServiceRegistry, ServiceRegistryArgs
- Container
Name string - Container
Port int - Port int
- Registry
Arn string
- Container
Name string - Container
Port int - Port int
- Registry
Arn string
- container
Name String - container
Port Integer - port Integer
- registry
Arn String
- container
Name string - container
Port number - port number
- registry
Arn string
- container_
name str - container_
port int - port int
- registry_
arn str
- container
Name String - container
Port Number - port Number
- registry
Arn String
ServiceSchedulingStrategy, ServiceSchedulingStrategyArgs
- Daemon
- DAEMON
- Replica
- REPLICA
- Service
Scheduling Strategy Daemon - DAEMON
- Service
Scheduling Strategy Replica - REPLICA
- Daemon
- DAEMON
- Replica
- REPLICA
- Daemon
- DAEMON
- Replica
- REPLICA
- DAEMON
- DAEMON
- REPLICA
- REPLICA
- "DAEMON"
- DAEMON
- "REPLICA"
- REPLICA
ServiceSecret, ServiceSecretArgs
- name str
- value_
from str
ServiceTag, ServiceTagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.