Skip to main content

endpoint_groups

Creates, updates, deletes or gets an endpoint_group resource or lists endpoint_groups in a region

Overview

Nameendpoint_groups
TypeResource
DescriptionResource Type definition for AWS::GlobalAccelerator::EndpointGroup
Idaws.globalaccelerator.endpoint_groups

Fields

NameDatatypeDescription
listener_arnstringThe Amazon Resource Name (ARN) of the listener
endpoint_group_regionstringThe name of the AWS Region where the endpoint group is located
endpoint_configurationsarrayThe list of endpoint objects.
traffic_dial_percentagenumberThe percentage of traffic to sent to an AWS Region
health_check_portintegerThe port that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.
health_check_protocolstringThe protocol that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.
health_check_pathstring
health_check_interval_secondsintegerThe time in seconds between each health check for an endpoint. Must be a value of 10 or 30
threshold_countintegerThe number of consecutive health checks required to set the state of the endpoint to unhealthy.
endpoint_group_arnstringThe Amazon Resource Name (ARN) of the endpoint group
port_overridesarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTListenerArn, EndpointGroupRegion, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all endpoint_groups in a region.

SELECT
region,
listener_arn,
endpoint_group_region,
endpoint_configurations,
traffic_dial_percentage,
health_check_port,
health_check_protocol,
health_check_path,
health_check_interval_seconds,
threshold_count,
endpoint_group_arn,
port_overrides
FROM aws.globalaccelerator.endpoint_groups
;

Gets all properties from an individual endpoint_group.

SELECT
region,
listener_arn,
endpoint_group_region,
endpoint_configurations,
traffic_dial_percentage,
health_check_port,
health_check_protocol,
health_check_path,
health_check_interval_seconds,
threshold_count,
endpoint_group_arn,
port_overrides
FROM aws.globalaccelerator.endpoint_groups
WHERE data__Identifier = '<EndpointGroupArn>';

INSERT example

Use the following StackQL query and manifest file to create a new endpoint_group resource, using stack-deploy.

/*+ create */
INSERT INTO aws.globalaccelerator.endpoint_groups (
ListenerArn,
EndpointGroupRegion,
region
)
SELECT
'{{ ListenerArn }}',
'{{ EndpointGroupRegion }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.globalaccelerator.endpoint_groups
WHERE data__Identifier = '<EndpointGroupArn>'
AND region = 'us-east-1';

Permissions

To operate on the endpoint_groups resource, the following permissions are required:

Create

globalaccelerator:CreateEndpointGroup,
globalaccelerator:DescribeEndpointGroup,
globalaccelerator:DescribeAccelerator,
globalaccelerator:DescribeListener,
globalaccelerator:ListAccelerators,
globalaccelerator:ListListeners

Read

globalaccelerator:DescribeEndpointGroup

Update

globalaccelerator:UpdateEndpointGroup,
globalaccelerator:DescribeEndpointGroup,
globalaccelerator:DescribeListener,
globalaccelerator:DescribeAccelerator

Delete

globalaccelerator:DeleteEndpointGroup,
globalaccelerator:DescribeEndpointGroup,
globalaccelerator:DescribeAccelerator

List

globalaccelerator:ListEndpointGroups