Skip to main content

container_group_definitions

Creates, updates, deletes or gets a container_group_definition resource or lists container_group_definitions in a region

Overview

Namecontainer_group_definitions
TypeResource
DescriptionThe AWS::GameLift::ContainerGroupDefinition resource creates an Amazon GameLift container group definition.
Idaws.gamelift.container_group_definitions

Fields

NameDatatypeDescription
container_group_definition_arnstringThe Amazon Resource Name (ARN) that is assigned to a Amazon GameLift container group resource and uniquely identifies it across all AWS Regions.
namestringA descriptive label for the container group definition.
creation_timestringA time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
scheduling_strategystringSpecifies whether the container group includes replica or daemon containers.
total_memory_limitintegerThe maximum amount of memory (in MiB) to allocate for this container group.
total_cpu_limitintegerThe maximum number of CPU units reserved for this container group. The value is expressed as an integer amount of CPU units. (1 vCPU is equal to 1024 CPU units.)
container_definitionsarrayA collection of container definitions that define the containers in this group.
tagsarrayAn array of key-value pairs to apply to this resource.
operating_systemstringThe operating system of the container group
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, TotalMemoryLimit, TotalCpuLimit, ContainerDefinitions, OperatingSystem, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all container_group_definitions in a region.

SELECT
region,
container_group_definition_arn,
name,
creation_time,
scheduling_strategy,
total_memory_limit,
total_cpu_limit,
container_definitions,
tags,
operating_system
FROM aws.gamelift.container_group_definitions
WHERE region = 'us-east-1';

Gets all properties from an individual container_group_definition.

SELECT
region,
container_group_definition_arn,
name,
creation_time,
scheduling_strategy,
total_memory_limit,
total_cpu_limit,
container_definitions,
tags,
operating_system
FROM aws.gamelift.container_group_definitions
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.gamelift.container_group_definitions (
Name,
TotalMemoryLimit,
TotalCpuLimit,
ContainerDefinitions,
OperatingSystem,
region
)
SELECT
'{{ Name }}',
'{{ TotalMemoryLimit }}',
'{{ TotalCpuLimit }}',
'{{ ContainerDefinitions }}',
'{{ OperatingSystem }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.gamelift.container_group_definitions
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

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

Create

gamelift:CreateContainerGroupDefinition,
gamelift:DescribeContainerGroupDefinition,
gamelift:ListTagsForResource,
gamelift:TagResource,
ecr:BatchCheckLayerAvailability,
ecr:BatchGetImage,
ecr:GetDownloadUrlForLayer,
ecr:DescribeImages

Read

gamelift:DescribeContainerGroupDefinition,
gamelift:ListTagsForResource

Update

gamelift:ListTagsForResource,
gamelift:TagResource,
gamelift:UntagResource

Delete

gamelift:DescribeContainerGroupDefinition,
gamelift:DeleteContainerGroupDefinition

List

gamelift:ListContainerGroupDefinitions