The Terraform Medusajs provider allows you to configure your medusajs application space with infrastructure-as-code principles.
This release v0.0.1 is compatible with MedusaJS v1.20.6
The provider is distributed via the Terraform registry. To use it you need to configure
the required_provider
block. For example:
terraform {
required_providers {
medusa = {
source = "ikhvost/medusa"
# It's recommended to pin the version, e.g.:
# version = "~> 0.0.1"
}
}
}
provider "medusa" {
url = "<url>"
email = "<email>"
password = "<token>"
}
Packages of the releases are available at https://github.com/ikhvost/terraform-provider-medusa/releases See the terraform documentation for more information about installing third-party providers.
Clone the repository and run the following command:
$ task build-local
There are two environment settings for troubleshooting:
TF_LOG=INFO
enables debug output for Terraform.
Note this generates a lot of output!