[ aws . ecs ]

delete-express-gateway-service

Description

Deletes an Express service and removes all associated Amazon Web Services resources. This operation stops service tasks, removes the Application Load Balancer, target groups, security groups, auto-scaling policies, and other managed infrastructure components.

The service enters a DRAINING state where existing tasks complete current requests without starting new tasks. After all tasks stop, the service and infrastructure are permanently removed.

This operation cannot be reversed. Back up important data and verify the service is no longer needed before deletion.

See also: AWS API Documentation

Synopsis

  delete-express-gateway-service
--service-arn <value>
[--monitor-resources <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]

Options

--service-arn (string) [required]

The Amazon Resource Name (ARN) of the Express service to delete. The ARN uniquely identifies the service within your Amazon Web Services account and region.

--monitor-resources (string) Enable live monitoring of service resource status. Specify DEPLOYMENT to show only resources that are being added or removed as part of the latest service deployment, or RESOURCE to show all resources from all active configurations of the service. Defaults based on operation type: create-express-gateway-service and update-express-gateway-service default to DEPLOYMENT mode. delete-express-gateway-service defaults to RESOURCE mode. Requires a terminal (TTY) to run.

--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

Global Options

--debug (boolean)

Turn on debug logging.

--endpoint-url (string)

Override command’s default URL with the given URL.

--no-verify-ssl (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

--no-paginate (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

--output (string)

The formatting style for command output.

  • json
  • text
  • table
  • yaml
  • yaml-stream

--query (string)

A JMESPath query to use in filtering the response data.

--profile (string)

Use a specific profile from your credential file.

--region (string)

The region to use. Overrides config/env settings.

--version (string)

Display the version of this tool.

--color (string)

Turn on/off color output.

  • on
  • off
  • auto

--no-sign-request (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

--ca-bundle (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

--cli-read-timeout (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

--cli-connect-timeout (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

--cli-binary-format (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.

  • base64
  • raw-in-base64-out

--no-cli-pager (boolean)

Disable cli pager for output.

--cli-auto-prompt (boolean)

Automatically prompt for CLI input parameters.

--no-cli-auto-prompt (boolean)

Disable automatically prompt for CLI input parameters.

Output

service -> (structure)

The full description of the deleted express service.

cluster -> (string)

The short name or full ARN of the cluster that hosts the Express service.

serviceName -> (string)

The name of the Express service.

serviceArn -> (string)

The ARN that identifies the Express service.

infrastructureRoleArn -> (string)

The ARN of the infrastructure role that manages Amazon Web Services resources for the Express service.

status -> (structure)

The current status of the Express service.

statusCode -> (string)

The status of the Express service.

Possible values:

  • ACTIVE
  • DRAINING
  • INACTIVE

statusReason -> (string)

Information about why the Express service is in the current status.

currentDeployment -> (string)

The current deployment configuration for the Express service.

activeConfigurations -> (list)

The list of active service configurations for the Express service.

(structure)

Represents a specific configuration revision of an Express service, containing all the settings and parameters for that revision.

serviceRevisionArn -> (string)

The ARN of the service revision.

executionRoleArn -> (string)

The ARN of the task execution role for the service revision.

taskRoleArn -> (string)

The ARN of the task role for the service revision.

cpu -> (string)

The CPU allocation for tasks in this service revision.

memory -> (string)

The memory allocation for tasks in this service revision.

networkConfiguration -> (structure)

The network configuration for tasks in this service revision.

securityGroups -> (list)

The IDs of the security groups associated with the Express service.

(string)

subnets -> (list)

The IDs of the subnets associated with the Express service.

(string)

healthCheckPath -> (string)

The health check path for this service revision.

primaryContainer -> (structure)

The primary container configuration for this service revision.

image -> (string) [required]

The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest .

For Express services, the image typically contains a web application that listens on the specified container port. The image can be stored in Amazon ECR, Docker Hub, or any other container registry accessible to your execution role.

containerPort -> (integer)

The port number on the container that receives traffic from the load balancer. Default is 80.

awsLogsConfiguration -> (structure)

The log configuration for the container.

logGroup -> (string) [required]

The name of the CloudWatch Logs log group to send container logs to.

logStreamPrefix -> (string) [required]

The prefix for the CloudWatch Logs log stream names. The default for an Express service is ecs .

repositoryCredentials -> (structure)

The configuration for repository credentials for private registry authentication.

credentialsParameter -> (string)

The Amazon Resource Name (ARN) of the secret containing the private repository credentials.

command -> (list)

The command that is passed to the container.

(string)

environment -> (list)

The environment variables to pass to the container.

(structure)

A key-value pair object.

name -> (string)

The name of the key-value pair. For environment variables, this is the name of the environment variable.

value -> (string)

The value of the key-value pair. For environment variables, this is the value of the environment variable.

secrets -> (list)

The secrets to pass to the container.

(structure)

An object representing the secret to expose to your container. Secrets can be exposed to a container in the following ways:

  • To inject sensitive data into your containers as environment variables, use the secrets container definition parameter.
  • To reference sensitive information in the log configuration of a container, use the secretOptions container definition parameter.

For more information, see Specifying sensitive data in the Amazon Elastic Container Service Developer Guide .

name -> (string) [required]

The name of the secret.

valueFrom -> (string) [required]

The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.

For information about the require Identity and Access Management permissions, see Required IAM permissions for Amazon ECS secrets (for Secrets Manager) or Required IAM permissions for Amazon ECS secrets (for Systems Manager Parameter store) in the Amazon Elastic Container Service Developer Guide .

Note

If the SSM Parameter Store parameter exists in the same Region as the task you’re launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.

scalingTarget -> (structure)

The auto-scaling configuration for this service revision.

minTaskCount -> (integer)

The minimum number of tasks to run in the Express service.

maxTaskCount -> (integer)

The maximum number of tasks to run in the Express service.

autoScalingMetric -> (string)

The metric used for auto-scaling decisions. The default metric used for an Express service is CPUUtilization .

Possible values:

  • AVERAGE_CPU
  • AVERAGE_MEMORY
  • REQUEST_COUNT_PER_TARGET

autoScalingTargetValue -> (integer)

The target value for the auto-scaling metric. The default value for an Express service is 60.

ingressPaths -> (list)

The entry point into this service revision.

(structure)

The entry point into an Express service.

accessType -> (string) [required]

The type of access to the endpoint for the Express service.

Possible values:

  • PUBLIC
  • PRIVATE

endpoint -> (string) [required]

The endpoint for access to the service.

createdAt -> (timestamp)

The Unix timestamp for when this service revision was created.

tags -> (list)

The metadata applied to the Express service.

Constraints:

  • min: 0
  • max: 50

(structure)

The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.

The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50
  • For each resource, each tag key must be unique, and each tag key can have only one value.
  • Maximum key length - 128 Unicode characters in UTF-8
  • Maximum value length - 256 Unicode characters in UTF-8
  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
  • Tag keys and values are case-sensitive.
  • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.

key -> (string)

One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

Constraints:

  • min: 1
  • max: 128
  • pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$

value -> (string)

The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

Constraints:

  • min: 0
  • max: 256
  • pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$

createdAt -> (timestamp)

The Unix timestamp for when the Express service was created.

updatedAt -> (timestamp)

The Unix timestamp for when the Express service was last updated.