Provides a CE Cost Allocation Tag.
resource "aws_ce_cost_allocation_tag" "example" {
tag_key = "example"
status = "Active"
}
The following arguments are required:
tag_key
- (Required) The key for the cost allocation tag.status
- (Required) The status of a cost allocation tag. Valid values are Active
and Inactive
.This resource exports the following attributes in addition to the arguments above:
id
- The key for the cost allocation tag.type
- The type of cost allocation tag.In Terraform v1.5.0 and later, use an import
block to import aws_ce_cost_allocation_tag
using the id
. For example:
import {
to = aws_ce_cost_allocation_tag.example
id = "key"
}
Using terraform import
, import aws_ce_cost_allocation_tag
using the id
. For example:
% terraform import aws_ce_cost_allocation_tag.example key