Skip to main content

express_gateway_services

Creates, updates, deletes, gets or lists an express_gateway_services resource.

Overview

Nameexpress_gateway_services
TypeResource
Idaws.ecs.express_gateway_services

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
active_configurationsarrayThe list of active service configurations for the Express service.
clusterstringThe short name or full ARN of the cluster that hosts the Express service.
created_atstring (date-time)The Unix timestamp for when the Express service was created.
current_deploymentstringThe current deployment configuration for the Express service.
infrastructure_role_arnstringThe ARN of the infrastructure role that manages Amazon Web Services resources for the Express service.
service_arnstringThe ARN that identifies the Express service.
service_namestringThe name of the Express service.
statusobjectThe current status of the Express service.
tagsarrayThe metadata applied to the Express service.
updated_atstring (date-time)The Unix timestamp for when the Express service was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_express_gateway_serviceselectregionRetrieves detailed information about an Express service, including current status, configuration, managed infrastructure, and service revisions. Returns comprehensive service details, active service revisions, ingress paths with endpoints, and managed Amazon Web Services resource status including load balancers and auto-scaling policies. Use the include parameter to retrieve additional information such as resource tags.
create_express_gateway_serviceinsertregion, infrastructureRoleArnCreates an Express service that simplifies deploying containerized web applications on Amazon ECS with managed Amazon Web Services infrastructure. This operation provisions and configures Application Load Balancers, target groups, security groups, and auto-scaling policies automatically. Specify a primary container configuration with your application image and basic settings. Amazon ECS creates the necessary Amazon Web Services resources for traffic distribution, health monitoring, network access control, and capacity management. Provide an execution role for task operations and an infrastructure role for managing Amazon Web Services resources on your behalf.
update_express_gateway_serviceupdateregion, serviceArnUpdates an existing Express service configuration. Modifies container settings, resource allocation, auto-scaling configuration, and other service parameters without recreating the service. Amazon ECS creates a new service revision with updated configuration and performs a rolling deployment to replace existing tasks. The service remains available during updates, ensuring zero-downtime deployments. Some parameters like the infrastructure role cannot be modified after service creation and require creating a new service.
delete_express_gateway_servicedeleteregionDeletes 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves detailed information about an Express service, including current status, configuration, managed infrastructure, and service revisions. Returns comprehensive service details, active service revisions, ingress paths with endpoints, and managed Amazon Web Services resource status including load balancers and auto-scaling policies. Use the include parameter to retrieve additional information such as resource tags.

SELECT
active_configurations,
cluster,
created_at,
current_deployment,
infrastructure_role_arn,
service_arn,
service_name,
status,
tags,
updated_at
FROM aws.ecs.express_gateway_services
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Express service that simplifies deploying containerized web applications on Amazon ECS with managed Amazon Web Services infrastructure. This operation provisions and configures Application Load Balancers, target groups, security groups, and auto-scaling policies automatically. Specify a primary container configuration with your application image and basic settings. Amazon ECS creates the necessary Amazon Web Services resources for traffic distribution, health monitoring, network access control, and capacity management. Provide an execution role for task operations and an infrastructure role for managing Amazon Web Services resources on your behalf.

INSERT INTO aws.ecs.express_gateway_services (
executionRoleArn,
infrastructureRoleArn,
serviceName,
cluster,
healthCheckPath,
primaryContainer,
taskRoleArn,
networkConfiguration,
cpu,
memory,
scalingTarget,
tags,
taskDefinitionArn,
region
)
SELECT
'{{ executionRoleArn }}',
'{{ infrastructureRoleArn }}' /* required */,
'{{ serviceName }}',
'{{ cluster }}',
'{{ healthCheckPath }}',
'{{ primaryContainer }}',
'{{ taskRoleArn }}',
'{{ networkConfiguration }}',
'{{ cpu }}',
'{{ memory }}',
'{{ scalingTarget }}',
'{{ tags }}',
'{{ taskDefinitionArn }}',
'{{ region }}'
RETURNING
service
;

UPDATE examples

Updates an existing Express service configuration. Modifies container settings, resource allocation, auto-scaling configuration, and other service parameters without recreating the service. Amazon ECS creates a new service revision with updated configuration and performs a rolling deployment to replace existing tasks. The service remains available during updates, ensuring zero-downtime deployments. Some parameters like the infrastructure role cannot be modified after service creation and require creating a new service.

UPDATE aws.ecs.express_gateway_services
SET
serviceArn = '{{ serviceArn }}',
executionRoleArn = '{{ executionRoleArn }}',
healthCheckPath = '{{ healthCheckPath }}',
primaryContainer = '{{ primaryContainer }}',
taskRoleArn = '{{ taskRoleArn }}',
networkConfiguration = '{{ networkConfiguration }}',
cpu = '{{ cpu }}',
memory = '{{ memory }}',
scalingTarget = '{{ scalingTarget }}',
taskDefinitionArn = '{{ taskDefinitionArn }}'
WHERE
region = '{{ region }}' --required
AND serviceArn = '{{ serviceArn }}' --required
RETURNING
service;

DELETE examples

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.

DELETE FROM aws.ecs.express_gateway_services
WHERE region = '{{ region }}' --required
;