Retrieves the properties of a container group definition, including all container definitions in the group.
Request options:
Results:
If successful, this operation returns the complete properties of a container group definition version.
Learn more
See also: AWS API Documentation
describe-container-group-definition
--name <value>
[--version-number <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]
--name
(string)
The unique identifier for the container group definition to retrieve properties for. You can use either theName
orARN
value.
--version-number
(integer)
The specific version to retrieve.
--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.
--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.
--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.
--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
.
--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.
ContainerGroupDefinition -> (structure)
The properties of the requested container group definition resource.
ContainerGroupDefinitionArn -> (string)
The Amazon Resource Name (ARN ) that is assigned to an Amazon GameLiftContainerGroupDefinition
resource. It uniquely identifies the resource across all Amazon Web Services Regions. Format isarn:aws:gamelift:[region]::containergroupdefinition/[container group definition name]:[version]
.CreationTime -> (timestamp)
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example"1469498468.057"
).OperatingSystem -> (string)
The platform that all containers in the container group definition run on.
Note
Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs . For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5.Name -> (string)
A descriptive identifier for the container group definition. The name value is unique in an Amazon Web Services Region.ContainerGroupType -> (string)
The type of container group. Container group type determines how Amazon GameLift deploys the container group on each fleet instance.TotalMemoryLimitMebibytes -> (integer)
The amount of memory (in MiB) on a fleet instance to allocate for the container group. All containers in the group share these resources.
You can set a limit for each container definition in the group. If individual containers have limits, this total value must be greater than any individual container’s memory limit.
TotalVcpuLimit -> (double)
The amount of vCPU units on a fleet instance to allocate for the container group (1 vCPU is equal to 1024 CPU units). All containers in the group share these resources. You can set a limit for each container definition in the group. If individual containers have limits, this total value must be equal to or greater than the sum of the limits for each container in the group.GameServerContainerDefinition -> (structure)
The definition for the game server container in this group. This property is used only when the container group type is
GAME_SERVER
. This container definition specifies a container image with the game server build.ContainerName -> (string)
The container definition identifier. Container names are unique within a container group definition.DependsOn -> (list)
Indicates that the container relies on the status of other containers in the same container group during startup and shutdown sequences. A container might have dependencies on multiple containers.
(structure)
A container’s dependency on another container in the same container group. The dependency impacts how the dependent container is able to start or shut down based the status of the other container.
For example, ContainerA is configured with the following dependency: a
START
dependency on ContainerB . This means that ContainerA can’t start until ContainerB has started. It also means that ContainerA must shut down before ContainerB .eiifcbfhgrdurhnucnufkgbnbnnerrvbtjvljdetkehc**Part of:** GameServerContainerDefinition , GameServerContainerDefinitionInput , SupportContainerDefinition , SupportContainerDefinitionInput
ContainerName -> (string)
A descriptive label for the container definition that this container depends on.Condition -> (string)
The condition that the dependency container must reach before the dependent container can start. Valid conditions include:
- START - The dependency container must have started.
- COMPLETE - The dependency container has run to completion (exits). Use this condition with nonessential containers, such as those that run a script and then exit. The dependency container can’t be an essential container.
- SUCCESS - The dependency container has run to completion and exited with a zero status. The dependency container can’t be an essential container.
- HEALTHY - The dependency container has passed its Docker health check. Use this condition with dependency containers that have health checks configured. This condition is confirmed at container group startup only.
MountPoints -> (list)
A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.
(structure)
A mount point that binds a container to a file or directory on the host system.
Part of: GameServerContainerDefinition , GameServerContainerDefinitionInput , SupportContainerDefinition , SupportContainerDefinitionInputInstancePath -> (string)
The path to the source file or directory.ContainerPath -> (string)
The mount path on the container. If this property isn’t set, the instance path is used.AccessLevel -> (string)
The type of access for the container.EnvironmentOverride -> (list)
A set of environment variables that’s passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference .
(structure)
An environment variable to set inside a container, in the form of a key-value pair.
Part of: GameServerContainerDefinition , GameServerContainerDefinitionInput , SupportContainerDefinition , SupportContainerDefinitionInputName -> (string)
The environment variable name.Value -> (string)
The environment variable value.ImageUri -> (string)
The URI to the image that Amazon GameLift uses when deploying this container to a container fleet. For a more specific identifier, seeResolvedImageDigest
.PortConfiguration -> (structure)
The set of ports that are available to bind to processes in the container. For example, a game server process requires a container port to allow game clients to connect to it. Container ports aren’t directly accessed by inbound traffic. Amazon GameLift maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet’s
ConnectionPortRange
.ContainerPortRanges -> (list)
A set of one or more container port number ranges. The ranges can’t overlap.
(structure)
A set of one or more port numbers that can be opened on the container.
Part of: ContainerPortConfigurationFromPort -> (integer)
A starting value for the range of allowed port numbers.ToPort -> (integer)
An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater thanFromPort
.Protocol -> (string)
The network protocol that these ports support.ResolvedImageDigest -> (string)
A unique and immutable identifier for the container image. The digest is a SHA 256 hash of the container image manifest.ServerSdkVersion -> (string)
The Amazon GameLift server SDK version that the game server is integrated with. Only game servers using 5.2.0 or higher are compatible with container fleets.SupportContainerDefinitions -> (list)
The set of definitions for support containers in this group. A container group definition might have zero support container definitions. Support container can be used in any type of container group.
(structure)
Describes a support container in a container group. A support container might be in a game server container group or a per-instance container group. Support containers don’t run game server processes.
You can update a support container definition and deploy the updates to an existing fleet. When creating or updating a game server container group definition, use the property GameServerContainerDefinitionInput .
Part of: ContainerGroupDefinition
Returned by: DescribeContainerGroupDefinition , ListContainerGroupDefinitions , UpdateContainerGroupDefinition
ContainerName -> (string)
The container definition identifier. Container names are unique within a container group definition.DependsOn -> (list)
Indicates that the container relies on the status of other containers in the same container group during its startup and shutdown sequences. A container might have dependencies on multiple containers.
(structure)
A container’s dependency on another container in the same container group. The dependency impacts how the dependent container is able to start or shut down based the status of the other container.
For example, ContainerA is configured with the following dependency: a
START
dependency on ContainerB . This means that ContainerA can’t start until ContainerB has started. It also means that ContainerA must shut down before ContainerB .eiifcbfhgrdurhnucnufkgbnbnnerrvbtjvljdetkehc**Part of:** GameServerContainerDefinition , GameServerContainerDefinitionInput , SupportContainerDefinition , SupportContainerDefinitionInput
ContainerName -> (string)
A descriptive label for the container definition that this container depends on.Condition -> (string)
The condition that the dependency container must reach before the dependent container can start. Valid conditions include:
- START - The dependency container must have started.
- COMPLETE - The dependency container has run to completion (exits). Use this condition with nonessential containers, such as those that run a script and then exit. The dependency container can’t be an essential container.
- SUCCESS - The dependency container has run to completion and exited with a zero status. The dependency container can’t be an essential container.
- HEALTHY - The dependency container has passed its Docker health check. Use this condition with dependency containers that have health checks configured. This condition is confirmed at container group startup only.
MountPoints -> (list)
A mount point that binds a path inside the container to a file or directory on the host system and lets it access the file or directory.
(structure)
A mount point that binds a container to a file or directory on the host system.
Part of: GameServerContainerDefinition , GameServerContainerDefinitionInput , SupportContainerDefinition , SupportContainerDefinitionInputInstancePath -> (string)
The path to the source file or directory.ContainerPath -> (string)
The mount path on the container. If this property isn’t set, the instance path is used.AccessLevel -> (string)
The type of access for the container.EnvironmentOverride -> (list)
A set of environment variables that’s passed to the container on startup. See the ContainerDefinition::environment parameter in the Amazon Elastic Container Service API Reference .
(structure)
An environment variable to set inside a container, in the form of a key-value pair.
Part of: GameServerContainerDefinition , GameServerContainerDefinitionInput , SupportContainerDefinition , SupportContainerDefinitionInputName -> (string)
The environment variable name.Value -> (string)
The environment variable value.Essential -> (boolean)
Indicates whether the container is vital to the container group. If an essential container fails, the entire container group restarts.HealthCheck -> (structure)
A configuration for a non-terminal health check. A support container automatically restarts if it stops functioning or if it fails this health check.
Command -> (list)
A string array that specifies the command that the container runs to determine if it’s healthy.
(string)
Interval -> (integer)
The time period (in seconds) between each health check.Retries -> (integer)
The number of times to retry a failed health check before flagging the container unhealthy. The first run of the command does not count as a retry.StartPeriod -> (integer)
The optional grace period (in seconds) to give a container time to bootstrap before the first failed health check counts toward the number of retries.Timeout -> (integer)
The time period (in seconds) to wait for a health check to succeed before counting a failed health check.ImageUri -> (string)
The URI to the image that Amazon GameLift deploys to a container fleet. For a more specific identifier, seeResolvedImageDigest
.MemoryHardLimitMebibytes -> (integer)
The amount of memory that Amazon GameLift makes available to the container. If memory limits aren’t set for an individual container, the container shares the container group’s total memory allocation.
Related data type: ContainerGroupDefinition$TotalMemoryLimitMebibytesPortConfiguration -> (structure)
A set of ports that allow access to the container from external users. Processes running in the container can bind to a one of these ports. Container ports aren’t directly accessed by inbound traffic. Amazon GameLift maps these container ports to externally accessible connection ports, which are assigned as needed from the container fleet’s
ConnectionPortRange
.ContainerPortRanges -> (list)
A set of one or more container port number ranges. The ranges can’t overlap.
(structure)
A set of one or more port numbers that can be opened on the container.
Part of: ContainerPortConfigurationFromPort -> (integer)
A starting value for the range of allowed port numbers.ToPort -> (integer)
An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal to or greater thanFromPort
.Protocol -> (string)
The network protocol that these ports support.ResolvedImageDigest -> (string)
A unique and immutable identifier for the container image. The digest is a SHA 256 hash of the container image manifest.Vcpu -> (double)
The number of vCPU units that are reserved for the container. If no resources are reserved, the container shares the total vCPU limit for the container group.
Related data type: ContainerGroupDefinition$TotalVcpuLimitVersionNumber -> (integer)
Indicates the version of a particular container group definition. This number is incremented automatically when you update a container group definition. You can view, update, or delete individual versions or the entire container group definition.VersionDescription -> (string)
An optional description that was provided for a container group definition update. Each version can have a unique description.Status -> (string)
Current status of the container group definition resource. Values include:
COPYING
– Amazon GameLift is in the process of making copies of all container images that are defined in the group. While in this state, the resource can’t be used to create a container fleet.READY
– Amazon GameLift has copied the registry images for all containers that are defined in the group. You can use a container group definition in this status to create a container fleet.FAILED
– Amazon GameLift failed to create a valid container group definition resource. For more details on the cause of the failure, seeStatusReason
. A container group definition resource in failed status will be deleted within a few minutes.StatusReason -> (string)
Additional information about a container group definition that’s in
FAILED
status. Possible reasons include:
- An internal issue prevented Amazon GameLift from creating the container group definition resource. Delete the failed resource and call CreateContainerGroupDefinition again.
- An access-denied message means that you don’t have permissions to access the container image on ECR. See IAM permission examples for help setting up required IAM permissions for Amazon GameLift.
- The
ImageUri
value for at least one of the containers in the container group definition was invalid or not found in the current Amazon Web Services account.- At least one of the container images referenced in the container group definition exceeds the allowed size. For size limits, see Amazon GameLift endpoints and quotas .
- At least one of the container images referenced in the container group definition uses a different operating system than the one defined for the container group.