Skip to content

Commit

Permalink
Merge pull request #24402 from coderGo93/ce-cost-categories
Browse files Browse the repository at this point in the history
New resource for CE CostCategory, new datasources for CostExplore CostCategory and Tags
  • Loading branch information
YakDriver authored Apr 27, 2022
2 parents 33c16c6 + 762db54 commit 3feab8f
Show file tree
Hide file tree
Showing 14 changed files with 2,470 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .changelog/24402.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:new-resource
aws_ce_cost_category
```

```release-note:new-data-source
aws_ce_cost_category
```

```release-note:new-data-source
aws_ce_tags
```
6 changes: 6 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/service/backup"
"github.com/hashicorp/terraform-provider-aws/internal/service/batch"
"github.com/hashicorp/terraform-provider-aws/internal/service/budgets"
"github.com/hashicorp/terraform-provider-aws/internal/service/ce"
"github.com/hashicorp/terraform-provider-aws/internal/service/chime"
"github.com/hashicorp/terraform-provider-aws/internal/service/cloud9"
"github.com/hashicorp/terraform-provider-aws/internal/service/cloudcontrol"
Expand Down Expand Up @@ -444,6 +445,9 @@ func Provider() *schema.Provider {
"aws_batch_job_queue": batch.DataSourceJobQueue(),
"aws_batch_scheduling_policy": batch.DataSourceSchedulingPolicy(),

"aws_ce_cost_category": ce.DataSourceCostCategory(),
"aws_ce_tags": ce.DataSourceTags(),

"aws_cloudcontrolapi_resource": cloudcontrol.DataSourceResource(),

"aws_cloudformation_export": cloudformation.DataSourceExport(),
Expand Down Expand Up @@ -1008,6 +1012,8 @@ func Provider() *schema.Provider {
"aws_budgets_budget": budgets.ResourceBudget(),
"aws_budgets_budget_action": budgets.ResourceBudgetAction(),

"aws_ce_cost_category": ce.ResourceCostCategory(),

"aws_chime_voice_connector": chime.ResourceVoiceConnector(),
"aws_chime_voice_connector_group": chime.ResourceVoiceConnectorGroup(),
"aws_chime_voice_connector_logging": chime.ResourceVoiceConnectorLogging(),
Expand Down
11 changes: 11 additions & 0 deletions internal/service/ce/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Terraform AWS Provider CE Package

This area is primarily for AWS provider contributors and maintainers. For information on _using_ Terraform and the AWS provider, see the links below.


## Handy Links

* [Find out about contributing](../../../docs/contributing) to the AWS provider!
* AWS Provider Docs: [Home](https://registry.terraform.io/providers/hashicorp/aws/latest/docs)
* AWS Provider Docs: [One of the CE resources](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ce_cost_category)
* AWS Docs: [AWS SDK for Go CE](https://docs.aws.amazon.com/sdk-for-go/api/service/costexplorer/)
6 changes: 6 additions & 0 deletions internal/service/ce/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package ce

const (
ResCostCategory = "Cost Category"
ResTags = "Tags"
)
Loading

0 comments on commit 3feab8f

Please sign in to comment.