interface AmiDistribution
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ImageBuilder.Alpha.AmiDistribution |
Go | github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2#AmiDistribution |
Java | software.amazon.awscdk.services.imagebuilder.alpha.AmiDistribution |
Python | aws_cdk.aws_imagebuilder_alpha.AmiDistribution |
TypeScript (source) | @aws-cdk/aws-imagebuilder-alpha ยป AmiDistribution |
The regional distribution settings to use for an AMI build.
Example
const infrastructureConfiguration = new imagebuilder.InfrastructureConfiguration(this, 'Infrastructure', {
infrastructureConfigurationName: 'production-infrastructure',
instanceTypes: [
ec2.InstanceType.of(ec2.InstanceClass.COMPUTE7_INTEL, ec2.InstanceSize.LARGE)
],
vpc: vpc,
subnetSelection: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }
});
const distributionConfiguration = new imagebuilder.DistributionConfiguration(this, 'Distribution');
distributionConfiguration.addAmiDistributions({
amiName: 'production-ami-{{ imagebuilder:buildDate }}',
amiTargetAccountIds: ['123456789012', '098765432109']
});
const productionPipeline = new imagebuilder.ImagePipeline(this, 'ProductionPipeline', {
recipe: exampleImageRecipe,
infrastructureConfiguration: infrastructureConfiguration,
distributionConfiguration: distributionConfiguration
});
Properties
| Name | Type | Description |
|---|---|---|
| ami | string | The description of the AMI. |
| ami | IKey | The KMS key to encrypt the distributed AMI with. |
| ami | Ami | The launch permissions for the AMI, defining which principals are allowed to access the AMI. |
| ami | string | The name to use for the distributed AMIs. |
| ami | { [string]: string } | The tags to apply to the distributed AMIs. |
| ami | string[] | The account IDs to copy the output AMI to. |
| fast | Fast[] | The fast launch configurations to use for enabling EC2 Fast Launch on the distributed Windows AMI. |
| launch | Launch[] | The launch templates to apply the distributed AMI to. |
| license | string[] | The License Manager license configuration ARNs to apply to the distributed AMIs. |
| region? | string | The target region to distribute AMIs to. |
| ssm | SSMParameter[] | The SSM parameters to create or update for the distributed AMIs. |
amiDescription?
Type:
string
(optional, default: None)
The description of the AMI.
amiKmsKey?
Type:
IKey
(optional, default: None)
The KMS key to encrypt the distributed AMI with.
amiLaunchPermission?
Type:
Ami
(optional, default: None)
The launch permissions for the AMI, defining which principals are allowed to access the AMI.
amiName?
Type:
string
(optional, default: A name is generated from the image recipe name)
The name to use for the distributed AMIs.
amiTags?
Type:
{ [string]: string }
(optional, default: None)
The tags to apply to the distributed AMIs.
amiTargetAccountIds?
Type:
string[]
(optional, default: None)
The account IDs to copy the output AMI to.
fastLaunchConfigurations?
Type:
Fast[]
(optional, default: None)
The fast launch configurations to use for enabling EC2 Fast Launch on the distributed Windows AMI.
launchTemplates?
Type:
Launch[]
(optional, default: None)
The launch templates to apply the distributed AMI to.
licenseConfigurationArns?
Type:
string[]
(optional, default: None)
The License Manager license configuration ARNs to apply to the distributed AMIs.
region?
Type:
string
(optional, default: The current region is used)
The target region to distribute AMIs to.
ssmParameters?
Type:
SSMParameter[]
(optional, default: None)
The SSM parameters to create or update for the distributed AMIs.

.NET
Go
Java
Python
TypeScript (