-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
WORKING: f-aws-computeoptimizer-recommendation-preferences new resource #35349
WORKING: f-aws-computeoptimizer-recommendation-preferences new resource #35349
Conversation
Community NoteVoting for Prioritization
For Submitters
|
@ewbankkit - (Or anyone else who might know) I have a few questions about validation logic within this specific resource. All questions are marked with a Questions are thus:
Thanks for your help |
cfaba73
to
cc325f7
Compare
Thank you for your contribution! 🚀 A new usage of AWS SDK for Go V1 was detected. Please prefer AWS SDK for Go V2 for all net-new services. If this is an enhancement or bug fix to an existing AWS SDK Go V1 based resource, this comment can be safely ignored. For additional information refer to the AWS SDK for Go Versions page in the contributor guide. |
% make testacc TESTARGS='-run=TestAccComputeOptimizerEnrollmentStatus_serial' PKG=computeoptimizer make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.0 test ./internal/service/computeoptimizer/... -v -count 1 -parallel 20 -run=TestAccComputeOptimizerEnrollmentStatus_serial -timeout 360m === RUN TestAccComputeOptimizerEnrollmentStatus_serial === PAUSE TestAccComputeOptimizerEnrollmentStatus_serial === CONT TestAccComputeOptimizerEnrollmentStatus_serial === RUN TestAccComputeOptimizerEnrollmentStatus_serial/basic --- PASS: TestAccComputeOptimizerEnrollmentStatus_serial (21.13s) --- PASS: TestAccComputeOptimizerEnrollmentStatus_serial/basic (21.13s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/computeoptimizer 26.189s
% make testacc TESTARGS='-run=TestAccComputeOptimizerEnrollmentStatus_serial/includeMemberAccounts' PKG=computeoptimizer make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.0 test ./internal/service/computeoptimizer/... -v -count 1 -parallel 20 -run=TestAccComputeOptimizerEnrollmentStatus_serial/includeMemberAccounts -timeout 360m === RUN TestAccComputeOptimizerEnrollmentStatus_serial === PAUSE TestAccComputeOptimizerEnrollmentStatus_serial === CONT TestAccComputeOptimizerEnrollmentStatus_serial === RUN TestAccComputeOptimizerEnrollmentStatus_serial/includeMemberAccounts --- PASS: TestAccComputeOptimizerEnrollmentStatus_serial (20.80s) --- PASS: TestAccComputeOptimizerEnrollmentStatus_serial/includeMemberAccounts (20.80s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/computeoptimizer 25.705s
…h a single newline character'.
…: 0 or 2; Actual: 1]'.
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=TestAccComputeOptimizer_serial/RecommendationPreferences' PKG=computeoptimizer
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.0 test ./internal/service/computeoptimizer/... -v -count 1 -parallel 20 -run=TestAccComputeOptimizer_serial/RecommendationPreferences -timeout 360m
=== RUN TestAccComputeOptimizer_serial
=== PAUSE TestAccComputeOptimizer_serial
=== CONT TestAccComputeOptimizer_serial
=== RUN TestAccComputeOptimizer_serial/RecommendationPreferences
=== RUN TestAccComputeOptimizer_serial/RecommendationPreferences/basic
=== RUN TestAccComputeOptimizer_serial/RecommendationPreferences/disappears
=== RUN TestAccComputeOptimizer_serial/RecommendationPreferences/preferredResources
=== RUN TestAccComputeOptimizer_serial/RecommendationPreferences/utilizationPreferences
--- PASS: TestAccComputeOptimizer_serial (61.75s)
--- PASS: TestAccComputeOptimizer_serial/RecommendationPreferences (61.75s)
--- PASS: TestAccComputeOptimizer_serial/RecommendationPreferences/basic (14.40s)
--- PASS: TestAccComputeOptimizer_serial/RecommendationPreferences/disappears (11.26s)
--- PASS: TestAccComputeOptimizer_serial/RecommendationPreferences/preferredResources (13.80s)
--- PASS: TestAccComputeOptimizer_serial/RecommendationPreferences/utilizationPreferences (22.29s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/computeoptimizer 66.557s
% make testacc TESTARGS='-run=TestAccComputeOptimizer_serial/EnrollmentStatus' PKG=computeoptimizer
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.0 test ./internal/service/computeoptimizer/... -v -count 1 -parallel 20 -run=TestAccComputeOptimizer_serial/EnrollmentStatus -timeout 360m
=== RUN TestAccComputeOptimizer_serial
=== PAUSE TestAccComputeOptimizer_serial
=== CONT TestAccComputeOptimizer_serial
=== RUN TestAccComputeOptimizer_serial/EnrollmentStatus
=== RUN TestAccComputeOptimizer_serial/EnrollmentStatus/includeMemberAccounts
enrollment_status_test.go:71: this AWS account must be the management account of an AWS Organization
=== RUN TestAccComputeOptimizer_serial/EnrollmentStatus/basic
--- PASS: TestAccComputeOptimizer_serial (26.51s)
--- PASS: TestAccComputeOptimizer_serial/EnrollmentStatus (26.51s)
--- SKIP: TestAccComputeOptimizer_serial/EnrollmentStatus/includeMemberAccounts (0.73s)
--- PASS: TestAccComputeOptimizer_serial/EnrollmentStatus/basic (25.79s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/computeoptimizer 31.328s
@hunttom Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.67.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
Creates new AWS Compute Optimizer Resource to put recommendation preferences.
Relations
Closes #23945.
References
Output from Acceptance Testing
CURRENTLY WORKING - OPEN QUESTIONS BEFORE TESTS CAN BE PUSHED.