Skip to content

aws.imagebuilder.get_infrastructure_configuration

Example SQL Queries

SELECT * FROM
aws.imagebuilder.get_infrastructure_configuration
WHERE
"infrastructure_configuration_arn" = 'VALUE';

Description

Gets an infrastructure configuration.

Table Definition

Column NameColumn Data Type
infrastructure_configuration_arn Required Input Column

The Amazon Resource Name (ARN) of the infrastructure configuration that you want to retrieve.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

infrastructure_configuration

The infrastructure configuration object.

STRUCT(
"arn" VARCHAR,
"name" VARCHAR,
"description" VARCHAR,
"instance_types" VARCHAR[],
"instance_profile_name" VARCHAR,
"security_group_ids" VARCHAR[],
"subnet_id" VARCHAR,
"logging" STRUCT(
"s3_logs" STRUCT(
"s3_bucket_name" VARCHAR,
"s3_key_prefix" VARCHAR
)
),
"key_pair" VARCHAR,
"terminate_instance_on_failure" BOOLEAN,
"sns_topic_arn" VARCHAR,
"date_created" VARCHAR,
"date_updated" VARCHAR,
"resource_tags" MAP(VARCHAR, VARCHAR),
"instance_metadata_options" STRUCT(
"http_tokens" VARCHAR,
"http_put_response_hop_limit" BIGINT
),
"tags" MAP(VARCHAR, VARCHAR)
)
Show child fields
infrastructure_configuration.arn

The Amazon Resource Name (ARN) of the infrastructure configuration.

infrastructure_configuration.date_created

The date on which the infrastructure configuration was created.

infrastructure_configuration.date_updated

The date on which the infrastructure configuration was last updated.

infrastructure_configuration.description

The description of the infrastructure configuration.

infrastructure_configuration.instance_metadata_options

The instance metadata option settings for the infrastructure configuration.

Show child fields
infrastructure_configuration.instance_metadata_options.http_put_response_hop_limit

Limit the number of hops that an instance metadata request can traverse to reach its destination. The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.

infrastructure_configuration.instance_metadata_options.http_tokens

Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:

  • required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases.

  • optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned.

The default setting is optional.

infrastructure_configuration.instance_profile_name

The instance profile of the infrastructure configuration.

infrastructure_configuration.instance_types[]
infrastructure_configuration.key_pair

The Amazon EC2 key pair of the infrastructure configuration.

infrastructure_configuration.logging

The logging configuration of the infrastructure configuration.

Show child fields
infrastructure_configuration.logging.s3_logs

The Amazon S3 logging configuration.

Show child fields
infrastructure_configuration.logging.s3_logs.s3_bucket_name

The S3 bucket in which to store the logs.

infrastructure_configuration.logging.s3_logs.s3_key_prefix

The Amazon S3 path to the bucket where the logs are stored.

infrastructure_configuration.name

The name of the infrastructure configuration.

infrastructure_configuration.resource_tags

The tags attached to the resource created by Image Builder.

infrastructure_configuration.security_group_ids[]
infrastructure_configuration.sns_topic_arn

The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.

EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.

infrastructure_configuration.subnet_id

The subnet ID of the infrastructure configuration.

infrastructure_configuration.tags

The tags of the infrastructure configuration.

infrastructure_configuration.terminate_instance_on_failure

The terminate instance on failure configuration of the infrastructure configuration.

request_id

The request ID that uniquely identifies this request.

VARCHAR