A markup/discount that is defined for a specific set of services that can later be associated with a pricing plan.
This example to create pricing rule using global scope
resource "awscc_billingconductor_pricing_rule" "example" {
name = "Markup10percent"
scope = "GLOBAL"
type = "MARKUP"
modifier_percentage = 10
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
This example create pricing rule using service scope
resource "awscc_billingconductor_pricing_rule" "example_service" {
name = "S3Discount"
scope = "SERVICE"
service = "AmazonS3"
type = "DISCOUNT"
modifier_percentage = 5
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
This example enable free-tier
resource "awscc_billingconductor_pricing_rule" "example_tiering" {
name = "EnableFreeTiering"
scope = "GLOBAL"
type = "TIERING"
tiering = {
free_tier = {
activated = true
}
}
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
This example create using billing entity scope to markup when marketplace is in use.
resource "awscc_billingconductor_pricing_rule" "example_billing_entity" {
name = "MarketplaceDiscount"
scope = "BILLING_ENTITY"
billing_entity = "AWS Marketplace"
type = "MARKUP"
modifier_percentage = 5
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
This example provides using SKU as scope to provides discount billing item that uses t2.micro on Linux/Unix in Singapore region
resource "awscc_billingconductor_pricing_rule" "example_sku" {
name = "DiscountEC2_T2Micro_LinuxUnix"
description = "5% Discount for t2.micro on Linux/Unix in Singapore region"
scope = "SKU"
service = "AmazonEC2"
usage_type = "APS1-BoxUsage:t2.medium"
operation = "RunInstances"
type = "DISCOUNT"
modifier_percentage = 5
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]
}
name
(String) Pricing rule namescope
(String) A term used to categorize the granularity of a Pricing Rule.type
(String) One of MARKUP, DISCOUNT or TIERING that describes the behaviour of the pricing rule.billing_entity
(String) The seller of services provided by AWS, their affiliates, or third-party providers selling services via AWS Marketplaces. Supported billing entities are AWS, AWS Marketplace, and AISPL.description
(String) Pricing rule descriptionmodifier_percentage
(Number) Pricing rule modifier percentageoperation
(String) The Operation which a SKU pricing rule is modifyingservice
(String) The service which a pricing rule is applied ontags
(Attributes Set) (see below for nested schema)tiering
(Attributes) The set of tiering configurations for the pricing rule. (see below for nested schema)usage_type
(String) The UsageType which a SKU pricing rule is modifyingarn
(String) Pricing rule ARNassociated_pricing_plan_count
(Number) The number of pricing plans associated with pricing rulecreation_time
(Number) Creation timestamp in UNIX epoch time formatid
(String) Uniquely identifies the resource.last_modified_time
(Number) Latest modified timestamp in UNIX epoch time formattags
Required:
key
(String)value
(String)tiering
Optional:
free_tier
(Attributes) The possible customizable free tier configurations. (see below for nested schema)tiering.free_tier
Required:
activated
(Boolean)Import is supported using the following syntax:
$ terraform import awscc_billingconductor_pricing_rule.example <resource ID>