Comments (6)
Hello @lukasaron,
I wrote a blog about how this Stripe Provider has helped me in my work.
It is written in Japanese, but if you would like to read it. Thank you!!
https://creators-note.chatwork.com/entry/terraform-meets-stripe
from terraform-provider-stripe.
Thanks a lot @arai-ta I am glad the Stripe provider helped you achieve your goals!
Unfortunately, my Japanese is very bad and I believe you wrote something nice there.
from terraform-provider-stripe.
Hello,
According to the Stripe API documentation:
"An identifier will be randomly generated by Stripe. You can optionally override this ID, but the ID must be unique across all products in your Stripe account."
Therefore I let Stripe generate the ID. However, when there is a desire to have individual ID I can update the logic.
You don't usually need the ID of the product.
May I ask what is the reason or use case?
from terraform-provider-stripe.
Of course. Thanks for the reply.
I am trying to replace the subscription function of an existing web application with Stripe.
There are multiple ways to map Products in the application to Products in Stripe.
For example;
- Embed the generated Stripe Product ID in the application code
- Set the application identifier in the Product metadata
- Set the Product ID as the application identifier
I think the last case is one of the simpler solutions.
To use this method, it is necessary to set the specified product ID in multiple environments, including Live and Test mode.
I wanted to use Terraform and this Stripe Provider for this purpose.
Also, the document following suggested using the same ID in Live and Test mode.
https://stripe.com/docs/development/checklist#:~:text=use%20the%20same%20ID%20values
When recreating necessary objects in live mode, be certain to use the same ID values (for example, the same plan ID, not the same name) to guarantee your code will continue to work without issue.
So, I think if Terraform can create a Product resource by specifying the ID, it would be useful. :)
Hope this helps your understanding.
from terraform-provider-stripe.
Please have a look at the newly released version 1.6.5 where you can specify the product_id
field.
from terraform-provider-stripe.
I've tried version 1.6.6 and confirmed that the product_id
field works.
Thank you!
from terraform-provider-stripe.
Related Issues (20)
- stripe_portal_configuration doesn't store subscription_update.products HOT 7
- Wrong import stripe_price HOT 3
- "An entry in the tiers array is missing an amount." HOT 6
- it's not possible to define a one_time price
- This product cannot be deleted because it has one or more user-created prices HOT 1
- using "unit_amount_decimal" leads to a change in "unit_amount" on every apply HOT 1
- [Customer Portal] subscription_update.products always appear as changed HOT 3
- Feature list for product HOT 4
- Customer portal created but not showing in the dashboard HOT 3
- Portal is_default flag HOT 2
- Promotion code expitres_at sync HOT 2
- Unable to remove a product when it has prices HOT 2
- Recurring price without interval_count will always show change HOT 2
- Payment Links resource HOT 2
- tax_behavior on price resource might be misspelled HOT 3
- connect argument is not picked up HOT 2
- Update to sdk 78.10 HOT 3
- Not-required fields in promotion code restrictions HOT 1
- Support livemode for webhook HOT 1
- Promotion code fields are misinterpreted as `0` when they are `nil`.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-stripe.