terraform-provider-stripe
terraform-provider-stripe copied to clipboard
importing price with tiered/graduated price
Hello, thanks for this awesome terraform provider. I am trying to import a price with a tiered/graduate scheme and looks like the tiers aren't correctly imported:
$ terraform state show stripe_price.xxx
# stripe_price.xxx:
resource "stripe_price" "xxx" {
active = true
billing_scheme = "tiered"
currency = "usd"
id = "price_xxxx"
lookup_key = null
metadata = {}
nickname = null
product = "prod_xxx"
tax_behavior = "inclusive"
tiers_mode = "graduated"
type = "recurring"
recurring {
aggregate_usage = "max"
interval = "month"
interval_count = 1
usage_type = "metered"
}
}
This is a problem because if I try to apply afterwards it wants to add all the tiers causing the price to be destroyed and recreated.
Regards