You can build your .tf
files with the following blocks at the beginning:
# Define required providers
terraform {
required_version = ">= 0.14.0"
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
version = "~> 1.53.0"
}
}
}
# Configure the OpenStack Provider
provider "openstack" {
user_name = "Account_Username_Here"
tenant_id = "Project_ID_Here"
password = "AccountPasswordHere"
auth_url = "https://my.mojocloud.com:5000/v3"
region = "RegionOne"
user_domain_id = "Domain_ID_Here"
project_domain_id = "Domain_ID_Here"
ⓘ You can ask specific details via a support ticket if needed.
For further details on how to use Teraform blocks/operations with MojoCloud, you can use the official Terraform OpenStack Provider Docs: https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs