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

Managing prices #48

Open
cornerman opened this issue Jun 21, 2021 · 1 comment
Open

Managing prices #48

cornerman opened this issue Jun 21, 2021 · 1 comment

Comments

@cornerman
Copy link

cornerman commented Jun 21, 2021

Updating certain properties of a price will force a replacement of the stripe_price resource. But prices are not deletable via the API - so we have to do this manually in the dashboard. But furthermore, prices can only be deleted in the dashboard as long as they have not been used. If they have been used, the way to go is to update them as inactive.

Now, managing these with terraform becomes a bit tedious. Deleting/deactivating the price in the dashboard, then do a manually terraform state rm on the resource.

Does it make sense to update them as inactive in this terraform provider in case of destroy? Thereby, we could have a working flow - and if they have not been used, I can still go into the dashboard and delete them.

@dmaevac
Copy link

dmaevac commented Mar 7, 2022

This could be great, but it would also mean that the product delete logic would need to be aware of the state of its prices and archive (instead of delete) the product if it contains any archived prices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants