Support for cost centers #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for managing GitHub Enterprise Cost Centers using Terraform. It adds new resource and data source implementations, along with comprehensive acceptance tests and an example configuration. The changes enable users to create, read, update, delete, and import cost centers, as well as assign users, organizations, and repositories to them in an authoritative manner.
New resource and data source support for cost centers:
github_enterprise_cost_centerresource, allowing creation, update, deletion, and import of cost centers, with support for reading their state and associated Azure subscription and resources. (github/resource_github_enterprise_cost_center.go)github_enterprise_cost_center_resourcesresource to manage authoritative assignments of users, organizations, and repositories to a cost center. (examples/cost_centers/main.tf)github_enterprise_cost_centerandgithub_enterprise_cost_centersdata sources for reading individual and lists of cost centers, including their resources and filtering by state. (github/data_source_github_enterprise_cost_center.go,github/data_source_github_enterprise_cost_centers.go) [1] [2]github/provider.go) [1] [2]Testing and documentation:
github/data_source_github_enterprise_cost_center_test.go,github/data_source_github_enterprise_cost_centers_test.go) [1] [2]examples/cost_centers/main.tf)