You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(imagebuilder-alpha): add support for Image Pipeline Construct (#36153)
### Issue
aws/aws-cdk-rfcs#789
### Reason for this change
This change adds a new alpha module for EC2 Image Builder L2 Constructs (@aws-cdk/aws-imagebuilder-alpha), as outlined in aws/aws-cdk-rfcs#789. This PR specifically implements the ImagePipeline construct.
### Description of changes
This change implements the ImagePipeline construct, which is a higher-level construct of [CfnImagePipeline](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_imagebuilder.CfnImagePipeline.html).
#### Example
```ts
const imagePipeline = new imagebuilder.ImagePipeline(this, 'ImagePipeline-AMI', {
imagePipelineName: 'test-image-pipeline',
description: 'this is an image pipeline description.',
recipe: imageRecipe,
infrastructureConfiguration,
distributionConfiguration: amiDistributionConfiguration,
enabled: true,
executionRole,
schedule: {
expression: events.Schedule.expression('cron(0 7 ? * mon *)'),
timezone: cdk.TimeZone.PST8PDT,
startCondition: imagebuilder.ScheduleStartCondition.EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE,
autoDisableFailureCount: 5,
},
workflows: [{ workflow: imagebuilder.AwsManagedWorkflow.buildImage(this, 'BuildImage') }],
imageLogGroup,
imagePipelineLogGroup,
enhancedImageMetadataEnabled: true,
imageTestsEnabled: false,
imageScanningEnabled: false,
});
```
### Describe any new or updated permissions being added
N/A - new L2 construct in alpha module
### Description of how you validated changes
Validated with unit tests and integration tests. Manually verified generated CFN templates as well.
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Copy file name to clipboardExpand all lines: packages/@aws-cdk/aws-imagebuilder-alpha/README.md
+250Lines changed: 250 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,256 @@ EC2 Image Builder supports AWS-managed components for common tasks, AWS Marketpl
36
36
that you create. Components run during specific workflow phases: build and validate phases during the build stage, and
37
37
test phase during the test stage.
38
38
39
+
### Image Pipeline
40
+
41
+
An image pipeline provides the automation framework for building secure AMIs and container images. The pipeline orchestrates the entire image creation process by combining an image recipe or container recipe with infrastructure configuration and distribution configuration. Pipelines can run on a schedule or be triggered manually, and they manage the build, test, and distribution phases automatically.
42
+
43
+
#### Image Pipeline Basic Usage
44
+
45
+
Create a simple AMI pipeline with just an image recipe:
0 commit comments