Skip to main content

fpga_images

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

Overview

Namefpga_images
TypeResource
Idaws.ec2.fpga_images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_timestringThe date and time the AFI was created.
data_retention_supportbooleanIndicates whether data retention support is enabled for the AFI.
descriptionstringThe description of the AFI.
fpga_image_global_idstringThe global FPGA image identifier (AGFI ID).
fpga_image_idstringThe FPGA image identifier (AFI ID).
instance_typesstringThe instance types supported by the AFI.
namestringThe name of the AFI.
owner_aliasstringThe alias of the AFI owner. Possible values include self, amazon, and aws-marketplace.
owner_idstringThe ID of the Amazon Web Services account that owns the AFI.
pci_idstringInformation about the PCI bus.
product_codesstringThe product codes for the AFI.
publicbooleanIndicates whether the AFI is public.
shell_versionstringThe version of the Amazon Web Services Shell that was used to create the bitstream.
statestringInformation about the state of the AFI.
tagsstringAny tags assigned to the AFI.
update_timestringThe time of the most recent update to the AFI.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_fpga_imagesselectregionDryRun, FpgaImageId, Owner, Filter, NextToken, MaxResultsDescribes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.
create_fpga_imageinsertInputStorageLocation, regionDryRun, LogsStorageLocation, Description, Name, ClientToken, TagSpecificationCreates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP). The create operation is asynchronous. To verify that the AFI was successfully created and is ready for use, check the output logs. An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the Amazon Web Services FPGA Hardware Development Kit.
delete_fpga_imagedeleteFpgaImageId, regionDryRunDeletes the specified Amazon FPGA Image (AFI).
reset_fpga_image_attributeexecFpgaImageId, regionDryRun, AttributeResets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.

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
FpgaImageIdstringThe ID of the AFI.
InputStorageLocationobjectThe location of the encrypted design checkpoint in Amazon S3. The input must be a tarball.
regionstringAWS region (default: us-east-1)
AttributestringThe attribute.
ClientTokenstringUnique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
DescriptionstringA description for the AFI.
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayThe filters. create-time - The creation time of the AFI. fpga-image-id - The FPGA image identifier (AFI ID). fpga-image-global-id - The global FPGA image identifier (AGFI ID). name - The name of the AFI. owner-id - The Amazon Web Services account ID of the AFI owner. product-code - The product code. shell-version - The version of the Amazon Web Services Shell that was used to create the bitstream. state - The state of the AFI (pending | failed | available | unavailable). tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value. tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value. update-time - The time of the most recent update.
FpgaImageIdarrayThe AFI IDs.
LogsStorageLocationobjectThe location in Amazon S3 for the output logs.
MaxResultsintegerThe maximum number of results to return in a single call.
NamestringA name for the AFI.
NextTokenstringThe token to retrieve the next page of results.
OwnerarrayFilters the AFI by owner. Specify an Amazon Web Services account ID, self (owner is the sender of the request), or an Amazon Web Services owner alias (valid values are amazon | aws-marketplace).
TagSpecificationarrayThe tags to apply to the FPGA image during creation.

SELECT examples

Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.

SELECT
create_time,
data_retention_support,
description,
fpga_image_global_id,
fpga_image_id,
instance_types,
name,
owner_alias,
owner_id,
pci_id,
product_codes,
public,
shell_version,
state,
tags,
update_time
FROM aws.ec2.fpga_images
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND FpgaImageId = '{{ FpgaImageId }}'
AND Owner = '{{ Owner }}'
AND Filter = '{{ Filter }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;

INSERT examples

Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP). The create operation is asynchronous. To verify that the AFI was successfully created and is ready for use, check the output logs. An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the Amazon Web Services FPGA Hardware Development Kit.

INSERT INTO aws.ec2.fpga_images (
InputStorageLocation,
region,
DryRun,
LogsStorageLocation,
Description,
Name,
ClientToken,
TagSpecification
)
SELECT
'{{ InputStorageLocation }}',
'{{ region }}',
'{{ DryRun }}',
'{{ LogsStorageLocation }}',
'{{ Description }}',
'{{ Name }}',
'{{ ClientToken }}',
'{{ TagSpecification }}'
RETURNING
fpga_image_global_id,
fpga_image_id
;

DELETE examples

Deletes the specified Amazon FPGA Image (AFI).

DELETE FROM aws.ec2.fpga_images
WHERE FpgaImageId = '{{ FpgaImageId }}' --required
AND region = '{{ region }}' --required
AND DryRun = '{{ DryRun }}'
;

Lifecycle Methods

Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.

EXEC aws.ec2.fpga_images.reset_fpga_image_attribute
@FpgaImageId='{{ FpgaImageId }}' --required,
@region='{{ region }}' --required,
@DryRun={{ DryRun }},
@Attribute='{{ Attribute }}'
;