https://github.com/lukasaron/terraform-provider-stripe
Terraform Stripe Provider
https://github.com/lukasaron/terraform-provider-stripe
go golang hcl stripe stripe-api terraform terraform-provider terraform-stripe terraform-stripe-provider
Last synced: 3 months ago
JSON representation
Terraform Stripe Provider
- Host: GitHub
- URL: https://github.com/lukasaron/terraform-provider-stripe
- Owner: lukasaron
- License: mpl-2.0
- Created: 2021-05-18T09:48:15.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-11-14T08:27:55.000Z (7 months ago)
- Last Synced: 2025-11-14T10:20:51.661Z (7 months ago)
- Topics: go, golang, hcl, stripe, stripe-api, terraform, terraform-provider, terraform-stripe, terraform-stripe-provider
- Language: Go
- Homepage: https://registry.terraform.io/providers/lukasaron/stripe/latest
- Size: 11.3 MB
- Stars: 81
- Watchers: 2
- Forks: 28
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Stripe Terraform Provider
The Stripe Terraform provider uses the official Stripe SDK based on Golang. On top of that, the provider is developed
around the official Stripe API documentation [website](https://stripe.com/docs/api).
The Stripe Terraform Provider documentation can be found on the Terraform Provider documentation [website](https://registry.terraform.io/providers/lukasaron/stripe/latest).
## Usage:
```
terraform {
required_providers {
stripe = {
source = "lukasaron/stripe"
}
}
}
provider "stripe" {
api_key=""
}
```
### Environmental variable support
The parameter `api_key` can be omitted when the `STRIPE_API_KEY` environmental variable is present.
---
### Local Debugging
* Build the provider with `go build main.go`
* Move the final binary to the `mv main ~/.terraform.d/plugins/local/lukasaron/stripe/100/[platform]/terraform-provider-stripe_v100` where [platform] is `darwin_arm64` for Mac Apple chip for example.
* Create an HCL code with the following header:
```
terraform {
required_providers {
stripe = {
source = "local/lukasaron/stripe"
version = "100"
}
}
}
```
* Run the solution from the code with the program argument `--debug`
* Copy the `TF_REATTACH_PROVIDERS` value.
* `export TF_REATTACH_PROVIDERS=[value]`
* Put breakpoints in the code
* Remove .terraform folder where the HCL code is.
* Run `terraform init` & `terraform plan` & `terraform apply`