Skip to main content

distribution_configurations

Creates, updates, deletes or gets a distribution_configuration resource or lists distribution_configurations in a region

Overview

Namedistribution_configurations
TypeResource
DescriptionResource schema for AWS::ImageBuilder::DistributionConfiguration
Idaws.imagebuilder.distribution_configurations

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the distribution configuration.
namestringThe name of the distribution configuration.
descriptionstringThe description of the distribution configuration.
distributionsarrayThe distributions of the distribution configuration.
tagsobjectThe tags associated with the component.
regionstringAWS region.

Methods

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

SELECT examples

Gets all distribution_configurations in a region.

SELECT
region,
arn,
name,
description,
distributions,
tags
FROM aws.imagebuilder.distribution_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual distribution_configuration.

SELECT
region,
arn,
name,
description,
distributions,
tags
FROM aws.imagebuilder.distribution_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

iam:GetRole,
iam:CreateServiceLinkedRole,
ec2:DescribeLaunchTemplates,
ec2:CreateLaunchTemplateVersion,
ec2:ModifyLaunchTemplate,
imagebuilder:TagResource,
imagebuilder:GetDistributionConfiguration,
imagebuilder:CreateDistributionConfiguration

Update

ec2:DescribeLaunchTemplates,
ec2:CreateLaunchTemplateVersion,
ec2:ModifyLaunchTemplate,
imagebuilder:GetDistributionConfiguration,
imagebuilder:UpdateDistributionConfiguration

Read

imagebuilder:GetDistributionConfiguration

Delete

imagebuilder:GetDistributionConfiguration,
imagebuilder:UnTagResource,
imagebuilder:DeleteDistributionConfiguration

List

imagebuilder:ListDistributionConfigurations