Skip to main content

infrastructure_configurations

Creates, updates, deletes or gets an infrastructure_configuration resource or lists infrastructure_configurations in a region

Overview

Nameinfrastructure_configurations
TypeResource
DescriptionResource schema for AWS::ImageBuilder::InfrastructureConfiguration
Idaws.imagebuilder.infrastructure_configurations

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the infrastructure configuration.
namestringThe name of the infrastructure configuration.
descriptionstringThe description of the infrastructure configuration.
instance_typesarrayThe instance types of the infrastructure configuration.
security_group_idsarrayThe security group IDs of the infrastructure configuration.
loggingobjectThe logging configuration of the infrastructure configuration.
subnet_idstringThe subnet ID of the infrastructure configuration.
key_pairstringThe EC2 key pair of the infrastructure configuration..
terminate_instance_on_failurebooleanThe terminate instance on failure configuration of the infrastructure configuration.
instance_profile_namestringThe instance profile of the infrastructure configuration.
instance_metadata_optionsobjectThe instance metadata option settings for the infrastructure configuration.
sns_topic_arnstringThe SNS Topic Amazon Resource Name (ARN) of the infrastructure configuration.
resource_tagsobjectThe tags attached to the resource created by Image Builder.
tagsobjectThe tags associated with the component.
placementobjectThe placement option settings for the infrastructure configuration.
regionstringAWS region.

For more information, see AWS::ImageBuilder::InfrastructureConfiguration.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, InstanceProfileName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all infrastructure_configurations in a region.

SELECT
region,
arn,
name,
description,
instance_types,
security_group_ids,
logging,
subnet_id,
key_pair,
terminate_instance_on_failure,
instance_profile_name,
instance_metadata_options,
sns_topic_arn,
resource_tags,
tags,
placement
FROM aws.imagebuilder.infrastructure_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual infrastructure_configuration.

SELECT
region,
arn,
name,
description,
instance_types,
security_group_ids,
logging,
subnet_id,
key_pair,
terminate_instance_on_failure,
instance_profile_name,
instance_metadata_options,
sns_topic_arn,
resource_tags,
tags,
placement
FROM aws.imagebuilder.infrastructure_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.imagebuilder.infrastructure_configurations (
Name,
InstanceProfileName,
region
)
SELECT
'{{ Name }}',
'{{ InstanceProfileName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.imagebuilder.infrastructure_configurations
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

iam:PassRole,
iam:GetRole,
iam:GetInstanceProfile,
iam:CreateServiceLinkedRole,
sns:Publish,
imagebuilder:TagResource,
imagebuilder:GetInfrastructureConfiguration,
imagebuilder:CreateInfrastructureConfiguration

Update

iam:PassRole,
sns:Publish,
imagebuilder:GetInfrastructureConfiguration,
imagebuilder:UpdateInfrastructureConfiguration

Read

imagebuilder:GetInfrastructureConfiguration

Delete

imagebuilder:UnTagResource,
imagebuilder:GetInfrastructureConfiguration,
imagebuilder:DeleteInfrastructureConfiguration

List

imagebuilder:ListInfrastructureConfigurations