-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r/aws_imagebuilder_pipeline: add support for workflows #37317
r/aws_imagebuilder_pipeline: add support for workflows #37317
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Are there any updates on this? |
51fb500
to
68027c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccImageBuilderImagePipeline_' PKG=imagebuilder ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/imagebuilder/... -v -count 1 -parallel 3 -run=TestAccImageBuilderImagePipeline_ -timeout 360m
=== RUN TestAccImageBuilderImagePipeline_basic
=== PAUSE TestAccImageBuilderImagePipeline_basic
=== RUN TestAccImageBuilderImagePipeline_disappears
=== PAUSE TestAccImageBuilderImagePipeline_disappears
=== RUN TestAccImageBuilderImagePipeline_description
=== PAUSE TestAccImageBuilderImagePipeline_description
=== RUN TestAccImageBuilderImagePipeline_distributionARN
=== PAUSE TestAccImageBuilderImagePipeline_distributionARN
=== RUN TestAccImageBuilderImagePipeline_enhancedImageMetadataEnabled
=== PAUSE TestAccImageBuilderImagePipeline_enhancedImageMetadataEnabled
=== RUN TestAccImageBuilderImagePipeline_imageRecipeARN
=== PAUSE TestAccImageBuilderImagePipeline_imageRecipeARN
=== RUN TestAccImageBuilderImagePipeline_containerRecipeARN
=== PAUSE TestAccImageBuilderImagePipeline_containerRecipeARN
=== RUN TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabled
=== PAUSE TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabled
=== RUN TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabledAdvanced
=== PAUSE TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabledAdvanced
=== RUN TestAccImageBuilderImagePipeline_ImageTests_imageTestsEnabled
=== PAUSE TestAccImageBuilderImagePipeline_ImageTests_imageTestsEnabled
=== RUN TestAccImageBuilderImagePipeline_ImageTests_timeoutMinutes
=== PAUSE TestAccImageBuilderImagePipeline_ImageTests_timeoutMinutes
=== RUN TestAccImageBuilderImagePipeline_infrastructureARN
=== PAUSE TestAccImageBuilderImagePipeline_infrastructureARN
=== RUN TestAccImageBuilderImagePipeline_Schedule_pipelineExecutionStartCondition
=== PAUSE TestAccImageBuilderImagePipeline_Schedule_pipelineExecutionStartCondition
=== RUN TestAccImageBuilderImagePipeline_Schedule_scheduleExpression
=== PAUSE TestAccImageBuilderImagePipeline_Schedule_scheduleExpression
=== RUN TestAccImageBuilderImagePipeline_Schedule_timezone
=== PAUSE TestAccImageBuilderImagePipeline_Schedule_timezone
=== RUN TestAccImageBuilderImagePipeline_status
=== PAUSE TestAccImageBuilderImagePipeline_status
=== RUN TestAccImageBuilderImagePipeline_tags
=== PAUSE TestAccImageBuilderImagePipeline_tags
=== RUN TestAccImageBuilderImagePipeline_workflow
=== PAUSE TestAccImageBuilderImagePipeline_workflow
=== RUN TestAccImageBuilderImagePipeline_workflowParameter
=== PAUSE TestAccImageBuilderImagePipeline_workflowParameter
=== CONT TestAccImageBuilderImagePipeline_basic
=== CONT TestAccImageBuilderImagePipeline_ImageTests_timeoutMinutes
=== CONT TestAccImageBuilderImagePipeline_workflowParameter
--- PASS: TestAccImageBuilderImagePipeline_basic (25.01s)
=== CONT TestAccImageBuilderImagePipeline_workflow
--- PASS: TestAccImageBuilderImagePipeline_workflowParameter (31.59s)
=== CONT TestAccImageBuilderImagePipeline_tags
--- PASS: TestAccImageBuilderImagePipeline_ImageTests_timeoutMinutes (33.39s)
=== CONT TestAccImageBuilderImagePipeline_status
--- PASS: TestAccImageBuilderImagePipeline_workflow (32.86s)
=== CONT TestAccImageBuilderImagePipeline_Schedule_timezone
--- PASS: TestAccImageBuilderImagePipeline_status (33.46s)
=== CONT TestAccImageBuilderImagePipeline_Schedule_scheduleExpression
--- PASS: TestAccImageBuilderImagePipeline_tags (41.31s)
=== CONT TestAccImageBuilderImagePipeline_Schedule_pipelineExecutionStartCondition
--- PASS: TestAccImageBuilderImagePipeline_Schedule_timezone (34.62s)
=== CONT TestAccImageBuilderImagePipeline_infrastructureARN
--- PASS: TestAccImageBuilderImagePipeline_Schedule_scheduleExpression (31.73s)
=== CONT TestAccImageBuilderImagePipeline_imageRecipeARN
--- PASS: TestAccImageBuilderImagePipeline_Schedule_pipelineExecutionStartCondition (32.74s)
=== CONT TestAccImageBuilderImagePipeline_ImageTests_imageTestsEnabled
--- PASS: TestAccImageBuilderImagePipeline_infrastructureARN (32.99s)
=== CONT TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabledAdvanced
--- PASS: TestAccImageBuilderImagePipeline_imageRecipeARN (35.04s)
=== CONT TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabled
=== NAME TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabledAdvanced
acctest.go:1617: skipping test for aws/us-west-2: Error running apply: exit status 1
Error: creating Image Builder Image Pipeline: ResourceDependencyException: Resource dependency error: Amazon Inspector is not enabled for 'ecr' resources in account '123456789012'.
with aws_imagebuilder_image_pipeline.test,
on terraform_plugin_test.tf line 105, in resource "aws_imagebuilder_image_pipeline" "test":
105: resource "aws_imagebuilder_image_pipeline" "test" {
--- PASS: TestAccImageBuilderImagePipeline_ImageTests_imageTestsEnabled (34.31s)
=== CONT TestAccImageBuilderImagePipeline_containerRecipeARN
--- SKIP: TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabledAdvanced (17.00s)
=== CONT TestAccImageBuilderImagePipeline_distributionARN
=== NAME TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabled
acctest.go:1617: skipping test for aws/us-west-2: Error running apply: exit status 1
Error: updating Image Builder Image Pipeline (arn:aws:imagebuilder:us-west-2:123456789012:image-pipeline/tf-acc-test-5586128456531043210): ResourceDependencyException: Resource dependency error: Amazon Inspector is not enabled for 'ec2' resources in account '123456789012'.
with aws_imagebuilder_image_pipeline.test,
on terraform_plugin_test.tf line 105, in resource "aws_imagebuilder_image_pipeline" "test":
105: resource "aws_imagebuilder_image_pipeline" "test" {
--- SKIP: TestAccImageBuilderImagePipeline_ImageScanning_imageScanningEnabled (29.36s)
=== CONT TestAccImageBuilderImagePipeline_enhancedImageMetadataEnabled
--- PASS: TestAccImageBuilderImagePipeline_containerRecipeARN (35.31s)
=== CONT TestAccImageBuilderImagePipeline_description
--- PASS: TestAccImageBuilderImagePipeline_distributionARN (34.06s)
=== CONT TestAccImageBuilderImagePipeline_disappears
--- PASS: TestAccImageBuilderImagePipeline_enhancedImageMetadataEnabled (31.26s)
--- PASS: TestAccImageBuilderImagePipeline_disappears (21.75s)
--- PASS: TestAccImageBuilderImagePipeline_description (32.42s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/imagebuilder 212.373s
@kamilturek Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.59.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR adds support for Image Builder workflows to Image Builder pipelines. Similar to #36953.
Relations
Closes #35045.
References
https://aws.amazon.com/about-aws/whats-new/2023/12/ec2-image-builder-image-workflows/
https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_CreateImagePipeline.html
https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_UpdateImagePipeline.html
Output from Acceptance Testing