layout | title | sidebar_current | description |
---|---|---|---|
default |
CloudStack: cloudstack_service_offering |
docs-cloudstack-resource-service_offering |
Creates a Service Offering |
A cloudstack_service_offering
resource manages a service offering within CloudStack.
resource "cloudstack_service_offering" "example" {
name = "example-service-offering"
display_text = "Example Service Offering"
}
The following arguments are supported:
-
name
- (Required) Name of the service offering. Changing this forces a new resource to be created. -
display_text
- (Optional) The display text of the service offering. -
cpu_number
- (Optional) The number of CPU cores. Changing this forces a new resource to be created. -
cpu_speed
- (Optional) The speed of the CPU in Mhz. Changing this forces a new resource to be created. -
memory
- (Optional) Memory reserved by the VM in MB. Changing this forces a new resource to be created. -
host_tags
- (Optional) The host tags for the service offering. -
limit_cpu_use
- (Optional) Restrict the CPU usage to committed service offering. Changing this forces a new resource to be created. -
offer_ha
- (Optional) The HA for the service offering. Changing this forces a new resource to be created. -
storage_type
- (Optional) The storage type of the service offering. Values arelocal
andshared
. Changing this forces a new resource to be created.
The following attributes are exported:
id
- The ID of the service offering.
Service offerings can be imported; use <SERVICEOFFERINGID>
as the import ID. For example:
$ terraform import cloudstack_service_offering.example <SERVICEOFFERINGID>