Experimental
@aws-cdk/aws-imagebuilder-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
ImagePipelineProps Struct
Properties for creating an Image Pipeline resource.
Example
const workflowPipeline = new imagebuilder.ImagePipeline(this, 'WorkflowPipeline', {
recipe: exampleImageRecipe,
workflows: [
{ workflow: imagebuilder.AmazonManagedWorkflow.buildImage(this, 'BuildWorkflow') },
{ workflow: imagebuilder.AmazonManagedWorkflow.testImage(this, 'TestWorkflow') }
]
});
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string= None#distributionConfigurationoptionalIDistributionConfigurationdistribution_configurationoptionalIDistributionConfigurationdistributionConfigurationoptionalIDistributionConfigurationDistributionConfigurationoptionalIDistributionConfigurationDistributionConfigurationoptionalIDistributionConfiguration= None#enhancedImageMetadataEnabledoptionalbooleanenhanced_image_metadata_enabledoptionalboolenhancedImageMetadataEnabledoptionalBooleanEnhancedImageMetadataEnabledoptionalboolEnhancedImageMetadataEnabledoptional*bool= true#executionRoleoptionalIRoleexecution_roleoptionalIRoleexecutionRoleoptionalIRoleExecutionRoleoptionalIRoleExecutionRoleoptionalIRole#Default: Image Builder will use the SLR if possible. Otherwise, an execution role will be generated
notes
By default, the Image Builder Service Linked Role (SLR) will be created automatically and used as the execution role. However, when providing a custom set of image workflows for the pipeline, an execution role will be generated with the minimal permissions needed to execute the workflows.
imageLogGroupoptionalILogGroupimage_log_groupoptionalILogGroupimageLogGroupoptionalILogGroupImageLogGroupoptionalILogGroupImageLogGroupoptionalILogGroup#Default: a log group will be created
By default, a log group will be created with the format /aws/imagebuilder/<image-name>.
imagePipelineLogGroupoptionalILogGroupimage_pipeline_log_groupoptionalILogGroupimagePipelineLogGroupoptionalILogGroupImagePipelineLogGroupoptionalILogGroupImagePipelineLogGroupoptionalILogGroup#Default: a log group will be created
By default, a log group will be created with the format /aws/imagebuilder/pipeline/<pipeline-name>
imagePipelineNameoptionalstringimage_pipeline_nameoptionalstrimagePipelineNameoptionalStringImagePipelineNameoptionalstringImagePipelineNameoptional*string#Default: a name is generated
imageScanningEcrRepositoryoptionalIRepositoryimage_scanning_ecr_repositoryoptionalIRepositoryimageScanningEcrRepositoryoptionalIRepositoryImageScanningEcrRepositoryoptionalIRepositoryImageScanningEcrRepositoryoptionalIRepository#Default: if scanning is enabled, a repository will be created by Image Builder if one is not provided
If a repository is not provided, Image Builder creates a repository named image-builder-image-scanning-repository for vulnerability scanning.
imageScanningEcrTagsoptionalstring[]image_scanning_ecr_tagsoptionaltyping.List[str]imageScanningEcrTagsoptionalList<String>ImageScanningEcrTagsoptionalstring[]ImageScanningEcrTagsoptional*[]*string= None#imageScanningEnabledoptionalbooleanimage_scanning_enabledoptionalboolimageScanningEnabledoptionalBooleanImageScanningEnabledoptionalboolImageScanningEnabledoptional*bool= false#imageTestsEnabledoptionalbooleanimage_tests_enabledoptionalboolimageTestsEnabledoptionalBooleanImageTestsEnabledoptionalboolImageTestsEnabledoptional*bool= true#infrastructureConfigurationoptionalIInfrastructureConfigurationinfrastructure_configurationoptionalIInfrastructureConfigurationinfrastructureConfigurationoptionalIInfrastructureConfigurationInfrastructureConfigurationoptionalIInfrastructureConfigurationInfrastructureConfigurationoptionalIInfrastructureConfiguration#Default: an infrastructure configuration will be created with the default settings
A default infrastructure configuration will be used if one is not provided.
The default configuration will create an instance profile and role with minimal permissions needed to build the image, attached to the EC2 instance.
This can either be an image recipe, or a container recipe.
scheduleoptionalImagePipelineSchedulescheduleoptionalImagePipelineSchedulescheduleoptionalImagePipelineScheduleScheduleoptionalImagePipelineScheduleScheduleoptionalImagePipelineSchedule#Default: none, a manual image pipeline will be created
This configures how often and when a pipeline automatically creates a new image.
statusoptionalImagePipelineStatusstatusoptionalImagePipelineStatusstatusoptionalImagePipelineStatusStatusoptionalImagePipelineStatusStatusoptionalImagePipelineStatus= ImagePipelineStatus.ENABLED#tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string= None#workflowsoptionalWorkflowConfiguration[]workflowsoptionaltyping.List[WorkflowConfiguration]workflowsoptionalList<WorkflowConfiguration>WorkflowsoptionalWorkflowConfiguration[]Workflowsoptional*[]WorkflowConfiguration#Default: Image Builder will use a default set of workflows for the build to build, test, and distribute the image