Skip to main content

EcsServiceSchema

EcsServiceSchema is the schema of the EcsService resource: an ECS service, which keeps a number of tasks of one task definition running. Terraform provisions it as aws_ecs_service.

@group

Resources/EcsService

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format ecs-service-<execution-id>

Hierarchy

  • BaseResourceSchema
    • EcsServiceSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { assignPublicIp: ENABLED | DISABLED; awsAccountId: string; awsRegionId: string; clusterName: string; desiredCount: number; loadBalancers: EcsServiceLoadBalancerSchema[]; serviceName: string }

Input properties.

  • properties.assignPublicIp: The public IP address type. Valid values are ENABLED or DISABLED.
  • properties.awsAccountId: The AWS account ID.
  • properties.awsRegionId: The AWS region ID.
  • properties.clusterName: The name of the cluster the service runs in.
  • properties.desiredCount: The desired number of tasks.
  • properties.loadBalancers: The load balancers to use. See EcsServiceLoadBalancerSchema for options.
  • properties.serviceName: The name of the service.

Type declaration

  • assignPublicIp: ENABLED | DISABLED
  • awsAccountId: string
  • awsRegionId: string
  • clusterName: string
  • desiredCount: number
  • loadBalancers: EcsServiceLoadBalancerSchema[]
  • serviceName: string

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { serviceArn?: string } = { serviceArn: 'arn:aws:ecs:us-east-1:000000000000:service/mock-cluster/mock-service', }

Saved response.

  • response.serviceArn: The ARN of the service.

Type declaration

  • optionalserviceArn?: string

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string