Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using "unit_amount_decimal" leads to a change in "unit_amount" on every apply #48

Closed
juliandm opened this issue Jun 4, 2023 · 1 comment
Labels
question Further information is requested

Comments

@juliandm
Copy link

juliandm commented Jun 4, 2023

image

Reproduce:

You will see that the price resource is destroyed and recreated every time although nothing was changed in it

@lukasaron
Copy link
Owner

I was able to replicate the issue only when I put unit_amount_decimal as INTEGER value as opposed to FLOAT. Unfortunately, when unit_amount_decimal is set to INT (for example 1299) the Stripe SDK populates both values (unit_amount and unit_amount_decimal). Consequently, the Terraform state is confused.

@lukasaron lukasaron added the question Further information is requested label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants