Skip to main content

container_images

Creates, updates, deletes, gets or lists a container_images resource.

Overview

Namecontainer_images
TypeResource
Idaws.lightsail.container_images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
container_imagesarrayAn array of objects that describe container images that are registered to the container service.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_container_imagesselectregionReturns the container images that are registered to your Amazon Lightsail container service. If you created a deployment on your Lightsail container service that uses container images from a public registry like Docker Hub, those images are not returned as part of this action. Those images are not registered to your Lightsail container service.
register_container_imageinsertregion, serviceName, label, digestRegisters a container image to your Amazon Lightsail container service. This action is not required if you install and use the Lightsail Control (lightsailctl) plugin to push container images to your Lightsail container service. For more information, see Pushing and managing container images on your Amazon Lightsail container services in the Amazon Lightsail Developer Guide.
delete_container_imagedeleteregionDeletes a container image that is registered to your Amazon Lightsail container service.

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

Returns the container images that are registered to your Amazon Lightsail container service. If you created a deployment on your Lightsail container service that uses container images from a public registry like Docker Hub, those images are not returned as part of this action. Those images are not registered to your Lightsail container service.

SELECT
container_images
FROM aws.lightsail.container_images
WHERE region = '{{ region }}' -- required
;

INSERT examples

Registers a container image to your Amazon Lightsail container service. This action is not required if you install and use the Lightsail Control (lightsailctl) plugin to push container images to your Lightsail container service. For more information, see Pushing and managing container images on your Amazon Lightsail container services in the Amazon Lightsail Developer Guide.

INSERT INTO aws.lightsail.container_images (
serviceName,
label,
digest,
region
)
SELECT
'{{ serviceName }}' /* required */,
'{{ label }}' /* required */,
'{{ digest }}' /* required */,
'{{ region }}'
RETURNING
container_image
;

DELETE examples

Deletes a container image that is registered to your Amazon Lightsail container service.

DELETE FROM aws.lightsail.container_images
WHERE region = '{{ region }}' --required
;