alicloud_service_catalog_provisioned_product
更新时间:
Provides a Service Catalog Provisioned Product resource.
For information about Service Catalog Provisioned Product and how to use it, see What is Provisioned Product.
-> NOTE: Available in v1.196.0+.
Example Usage
Basic Usage
variable "name" {
default = "tf-testAccServiceCatalogProvisionedProduct"
}
resource "alicloud_service_catalog_provisioned_product" "default" {
provisioned_product_name = var.name
stack_region_id = "cn-hangzhou"
product_version_id = "pv-bp1d7dxy2pcc1g"
product_id = "prod-bp1u3dkc282cwd"
portfolio_id = "port-bp119dvn27jccw"
tags = {
"v1" = "tf-test"
}
parameters {
parameter_key = "role_name"
parameter_value = var.name
}
}
Argument Reference
The following arguments are supported:
parameters
- (Optional) Template parameters entered by the user.The maximum value of N is 200.See the followingBlock Parameters
.portfolio_id
- (Optional) Product mix ID.> When there is a default Startup option, there is no need to fill in the portfolio. When there is no default Startup option, you must fill in the portfolio.product_id
- (Required) Product ID.product_version_id
- (Required) Product version ID.provisioned_product_name
- (Required,ForceNew) The name of the instance.The length is 1~128 characters.stack_region_id
- (Required,ForceNew) The ID of the region to which the resource stack of the Alibaba Cloud resource orchestration service (ROS) belongs.tags
- (Optional) A mapping of tags to assign to the resource.
Block Parameters
The Parameters support the following:
parameter_key
- (Optional) The name of the parameter defined in the template.parameter_value
- (Optional) The Template parameter value entered by the user.
Attributes Reference
The following attributes are exported:
id
- Thekey
of the resource supplied above.create_time
- The creation time of the product instancelast_provisioning_task_id
- The ID of the last instance operation tasklast_successful_provisioning_task_id
- The ID of the last successful instance operation tasklast_task_id
- The ID of the last taskoutputs
- The output value of the template.description
- Description of the output value defined in the template.output_key
- The name of the output value defined in the template.output_value
- The content of the output value defined in the template.
owner_principal_id
- The RAM entity ID of the ownerowner_principal_type
- The RAM entity type of the ownerproduct_name
- The name of the productproduct_version_name
- The name of the product versionprovisioned_product_arn
- The ARN of the product instanceprovisioned_product_id
- The ID of the instance.provisioned_product_type
- Instance type.The value is RosStack, which indicates the stack of Alibaba Cloud resource orchestration service (ROS).stack_id
- The ID of the ROS stackstatus
- Instance statusstatus_message
- The status message of the product instance
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 3 mins) Used when create the Provisioned Product.delete
- (Defaults to 24 mins) Used when delete the Provisioned Product.update
- (Defaults to 24 mins) Used when update the Provisioned Product.
Import
Service Catalog Provisioned Product can be imported using the id, e.g.
$terraform import alicloud_service_catalog_provisioned_product.example <id>
文档内容是否对您有帮助?