-
Notifications
You must be signed in to change notification settings - Fork 9.9k
R/aws billing views: Add new resource for custom billing view #45097
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 billing views: Add new resource for custom billing view #45097
Conversation
% make testacc TESTS=TestAccBillingView_ PKG=billing make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... make: Running acceptance tests on branch: 🌿 r/aws_billing_views 🌿... TF_ACC=1 go1.24.8 test ./internal/service/billing/... -v -count 1 -parallel 20 -run='TestAccBillingView_' -timeout 360m -vet=off 2025/11/14 21:06:59 Creating Terraform AWS Provider (SDKv2-style)... 2025/11/14 21:06:59 Initializing Terraform AWS Provider (SDKv2-style)... === RUN TestAccBillingView_basic === PAUSE TestAccBillingView_basic === RUN TestAccBillingView_update === PAUSE TestAccBillingView_update === RUN TestAccBillingView_disappears === PAUSE TestAccBillingView_disappears === CONT TestAccBillingView_basic === CONT TestAccBillingView_disappears === CONT TestAccBillingView_update --- PASS: TestAccBillingView_disappears (23.41s) --- PASS: TestAccBillingView_basic (26.88s) --- PASS: TestAccBillingView_update (57.88s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/billing 62.546s
Community GuidelinesThis comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀 Voting for Prioritization
Pull Request Authors
|
jar-b
left a comment
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.
Looks good! Just a couple nits and question on create and update flex.Flatten calls.
jar-b
left a comment
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 t K=billing T=TestAccBillingView_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 r/aws_billing_views 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/billing/... -v -count 1 -parallel 20 -run='TestAccBillingView_' -timeout 360m -vet=off
2025/11/19 13:12:30 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/19 13:12:30 Initializing Terraform AWS Provider (SDKv2-style)...
--- PASS: TestAccBillingView_disappears (14.14s)
--- PASS: TestAccBillingView_basic (16.55s)
--- PASS: TestAccBillingView_update (28.75s)
--- PASS: TestAccBillingView_tags (33.61s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/billing 40.020s|
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
|
This functionality has been released in v6.22.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. |
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the library.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Description
Adds new resource for AWS custom billing view.
Relations
Closes #40677
References
https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_CreateBillingView.html
https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_GetBillingView.html
https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_UpdateBillingView.html
https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_billing_DeleteBillingView.html
Output from Acceptance Testing