-
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
feat: Add timeout_in_minutes to action block for aws_codepipeline #36316
feat: Add timeout_in_minutes to action block for aws_codepipeline #36316
Conversation
Community NoteVoting for Prioritization
For Submitters
|
f08b923
to
93fa57f
Compare
93fa57f
to
880fc9e
Compare
# Conflicts: # internal/service/codepipeline/codepipeline.go
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=TestAccCodePipeline_' PKG=codepipeline ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/codepipeline/... -v -count 1 -parallel 3 -run=TestAccCodePipeline_ -timeout 360m
=== RUN TestAccCodePipeline_basic
=== PAUSE TestAccCodePipeline_basic
=== RUN TestAccCodePipeline_disappears
=== PAUSE TestAccCodePipeline_disappears
=== RUN TestAccCodePipeline_emptyStageArtifacts
=== PAUSE TestAccCodePipeline_emptyStageArtifacts
=== RUN TestAccCodePipeline_deployWithServiceRole
=== PAUSE TestAccCodePipeline_deployWithServiceRole
=== RUN TestAccCodePipeline_tags
=== PAUSE TestAccCodePipeline_tags
=== RUN TestAccCodePipeline_MultiRegion_basic
=== PAUSE TestAccCodePipeline_MultiRegion_basic
=== RUN TestAccCodePipeline_MultiRegion_update
=== PAUSE TestAccCodePipeline_MultiRegion_update
=== RUN TestAccCodePipeline_MultiRegion_convertSingleRegion
=== PAUSE TestAccCodePipeline_MultiRegion_convertSingleRegion
=== RUN TestAccCodePipeline_withNamespace
=== PAUSE TestAccCodePipeline_withNamespace
=== RUN TestAccCodePipeline_withGitHubV1SourceAction
codepipeline_test.go:479: Environment variable GITHUB_TOKEN is not set, skipping test
--- SKIP: TestAccCodePipeline_withGitHubV1SourceAction (0.00s)
=== RUN TestAccCodePipeline_ecr
=== PAUSE TestAccCodePipeline_ecr
=== RUN TestAccCodePipeline_pipelinetype
=== PAUSE TestAccCodePipeline_pipelinetype
=== RUN TestAccCodePipeline_manualApprovalTimeoutInMinutes
=== PAUSE TestAccCodePipeline_manualApprovalTimeoutInMinutes
=== CONT TestAccCodePipeline_basic
=== CONT TestAccCodePipeline_MultiRegion_update
=== CONT TestAccCodePipeline_ecr
--- PASS: TestAccCodePipeline_ecr (22.83s)
=== CONT TestAccCodePipeline_manualApprovalTimeoutInMinutes
--- PASS: TestAccCodePipeline_basic (40.61s)
=== CONT TestAccCodePipeline_pipelinetype
--- PASS: TestAccCodePipeline_MultiRegion_update (41.77s)
=== CONT TestAccCodePipeline_withNamespace
--- PASS: TestAccCodePipeline_manualApprovalTimeoutInMinutes (33.86s)
=== CONT TestAccCodePipeline_deployWithServiceRole
--- PASS: TestAccCodePipeline_withNamespace (20.30s)
=== CONT TestAccCodePipeline_MultiRegion_basic
--- PASS: TestAccCodePipeline_deployWithServiceRole (25.18s)
=== CONT TestAccCodePipeline_tags
--- PASS: TestAccCodePipeline_MultiRegion_basic (25.54s)
=== CONT TestAccCodePipeline_emptyStageArtifacts
--- PASS: TestAccCodePipeline_emptyStageArtifacts (21.42s)
=== CONT TestAccCodePipeline_disappears
--- PASS: TestAccCodePipeline_pipelinetype (74.32s)
=== CONT TestAccCodePipeline_MultiRegion_convertSingleRegion
--- PASS: TestAccCodePipeline_disappears (18.31s)
--- PASS: TestAccCodePipeline_tags (47.35s)
--- PASS: TestAccCodePipeline_MultiRegion_convertSingleRegion (52.46s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/codepipeline 172.265s
@acwwat 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 is to add the new
timeout_in_minutes
argument to theaction
block for theaws_codepipeline
resource. Note that this argument only applies to manual approval steps (i.e.category
=Approval
andprovider
=Manual
). For other action types, we just let the AWS API through a validation error.Also note that
timeout_in_minutes
is an integer type argument, I am not able to set it to a null value in cases where it's not returned by the AWS API. Values that are not set will be stored as0
in the state for allaction
blocks. The AWS API also doesn't return the non-configurable default value described in the documentation either. If there is another approach to keep the default value exact, please let me know.Relations
Closes #36278
References
Referred to ActionDeclaration in the API reference for specs and wordings.
Output from Acceptance Testing
Note:
TestAccCodePipeline_manualApprovalTimeoutInMinutes
is a new test case.