Skip to content

Commit 90d3916

Browse files
committed
No need to interpolate anymore
Terraform 0.13 came up with some preferred shorter syntax for this, so let's make sure we don't get any warnings anymore.
1 parent 5c03f46 commit 90d3916

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

main.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ terraform {
1010
variable "stripe_api_token" {} # populate this by exporting TF_VAR_stripe_api_token
1111

1212
provider "stripe" {
13-
api_token = "${var.stripe_api_token}"
13+
api_token = var.stripe_api_token
1414
}
1515

1616
resource "stripe_product" "my_product" {
@@ -30,21 +30,21 @@ resource "stripe_product" "my_product_with_id" {
3030
}
3131

3232
resource "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

3939
resource "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

4646
resource "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" {
7272
resource "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

8181
resource "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

8888
resource "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

109109
output "webhook_secret" {
110110
sensitive = true
111-
value = "${stripe_webhook_endpoint.my_endpoint.secret}"
111+
value = stripe_webhook_endpoint.my_endpoint.secret
112112
}
113113

114114
resource "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

Comments
 (0)