@@ -10,7 +10,7 @@ terraform {
1010variable "stripe_api_token" {} # populate this by exporting TF_VAR_stripe_api_token
1111
1212provider "stripe" {
13- api_token = " ${ var . stripe_api_token } "
13+ api_token = var. stripe_api_token
1414}
1515
1616resource "stripe_product" "my_product" {
@@ -30,21 +30,21 @@ resource "stripe_product" "my_product_with_id" {
3030}
3131
3232resource "stripe_plan" "my_product_plan" {
33- product = " ${ stripe_product . my_product . id } "
33+ product = stripe_product. my_product . id
3434 amount = 12345
3535 interval = " month" # day week month year
3636 currency = " usd"
3737}
3838
3939resource "stripe_plan" "free_product_plan" {
40- product = " ${ stripe_product . free_product . id } "
40+ product = stripe_product. free_product . id
4141 amount = 0
4242 interval = " month"
4343 currency = " usd"
4444}
4545
4646resource "stripe_plan" "my_product_metered_plan" {
47- product = " ${ stripe_product . my_product . id } "
47+ product = stripe_product. my_product . id
4848 interval = " month"
4949 currency = " usd"
5050
@@ -72,21 +72,21 @@ resource "stripe_plan" "my_product_metered_plan" {
7272resource "stripe_plan" "my_product_plan_with_id" {
7373 plan_id = " my_plan"
7474
75- product = " ${ stripe_product . my_product . id } "
75+ product = stripe_product. my_product . id
7676 amount = 3232
7777 interval = " month" # day week month year
7878 currency = " usd"
7979}
8080
8181resource "stripe_plan" "my_decimal_product_plan" {
82- product = " ${ stripe_product . my_product . id } "
82+ product = stripe_product. my_product . id
8383 amount_decimal = 123.45
8484 interval = " month" # day week month year
8585 currency = " usd"
8686}
8787
8888resource "stripe_plan" "my_transformed_product_plan" {
89- product = " ${ stripe_product . my_product . id } "
89+ product = stripe_product. my_product . id
9090 amount = 2401
9191 interval = " month" # day week month year
9292 currency = " usd"
@@ -108,7 +108,7 @@ resource "stripe_webhook_endpoint" "my_endpoint" {
108108
109109output "webhook_secret" {
110110 sensitive = true
111- value = " ${ stripe_webhook_endpoint . my_endpoint . secret } "
111+ value = stripe_webhook_endpoint. my_endpoint . secret
112112}
113113
114114resource "stripe_coupon" "mlk_day_coupon_25pc_off" {
@@ -142,7 +142,7 @@ resource "stripe_price" "my_price" {
142142 blm = " always"
143143 }
144144 nickname = " my price"
145- product = " ${ stripe_product . my_product . id } "
145+ product = stripe_product. my_product . id
146146 unit_amount = 1337
147147 recurring = {
148148 interval = " month"
0 commit comments