Providers
Cloudscript supports conversion into all major providers (see convert command in CLI) and can support full deployments using the CLI onto AWS and GCP. To use a provider within a service block, you must specify the provider in the providers block beforehand as shown below.
providers {
aws {
provider = "aws"
region = "us-east-1"
}
google {
provider = "google"
project = "my-gcp-project"
region = "us-central1"
}
azurerm {
provider = "azurerm"
subscription_id = "your-subscription-id"
tenant_id = "your-tenant-id"
features {}
}
oci {
provider = "oci"
region = "us-phoenix-1"
tenancy_ocid = "your-tenancy-ocid"
user_ocid = "your-user-ocid"
fingerprint = "your-key-fingerprint"
private_key_path = file(.oci/oci_api_key.pem)
}
digitalocean {
provider = "digitalocean"
token = "your-do-token"
}
cloudflare {
provider = "cloudflare"
api_token = "your-api-token"
}
kubernetes {
provider = "kubernetes"
config_path = file(.kube/config)
}
vsphere {
provider = "vsphere"
user = "your-vsphere-user"
password = "your-vsphere-password"
vsphere_server = "vsphere.example.com"
}
}
Last updated