Of course not all resources are covered by this first release, but there should be enough resources available to handle most common operations. Tests and docs are included.
1.5 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| cloudstack | Provider: CloudStack | docs-cloudstack-index | The CloudStack provider is used to interact with the many resources supported by CloudStack. The provider needs to be configured with a URL pointing to a runnning CloudStack API and the proper credentials before it can be used. |
CloudStack Provider
The CloudStack provider is used to interact with the many resources supported by CloudStack. The provider needs to be configured with a URL pointing to a runnning CloudStack API and the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
Example Usage
# Configure the CloudStack Provider
provider "cloudstack" {
api_url = "${var.cloudstack_api_url}"
api_key = "${var.cloudstack_api_key}"
secret_key = "${var.cloudstack_secret_key}"
}
# Create a web server
resource "cloudstack_instance" "web" {
...
}
Argument Reference
The following arguments are supported:
-
api_url- (Required) This is the CloudStack API URL. It must be provided, but it can also be sourced from theCLOUDSTACK_API_URLenvironment variable. -
api_key- (Required) This is the CloudStack API key. It must be provided, but it can also be sourced from theCLOUDSTACK_API_KEYenvironment variable. -
secret_key- (Required) This is the CloudStack secret key. It must be provided, but it can also be sourced from theCLOUDSTACK_SECRET_KEYenvironment variable.