franckverrot / terraform-provider-stripe

A Terraform Provider for Stripe
https://registry.terraform.io/providers/franckverrot/stripe/latest
Mozilla Public License 2.0
242 stars 51 forks source link

Fix importing #24

Closed kabesan closed 4 years ago

kabesan commented 4 years ago

Imported plan & coupon has difference

[coupon] Imported plan has no code and redeem_by.

  # stripe_coupon.my_coupon must be replaced
-/+ resource "stripe_coupon" "my_coupon" {
      ...
      + code               = "my_coupon"
      ...
      + redeem_by          = "2000-01-01T00:00:00Z" # forces replacement
      ...
    }

[plan] Imported plan has no product.

  # stripe_plan.my_plan will be updated in-place
  ~ resource "stripe_plan" "my_plan" {
      ...
      + product           = "my_product"
      ...
    }
franckverrot commented 4 years ago

Please re-open if you think I missed something earlier. Thanks a lot for your contribution!