alicloud_fcv3_alias
更新時間:
Provides a FCV3 Alias resource.
Alias for functions.
For information about FCV3 Alias and how to use it, see What is Alias.
-> NOTE: Available since v1.228.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
variable "function_name" {
default = "flask-3xdg"
}
resource "alicloud_fcv3_alias" "default" {
version_id = "1"
function_name = var.function_name
description = "create alias"
alias_name = var.name
additional_version_weight = {
"2" = "0.5"
}
}
Argument Reference
The following arguments are supported:
additional_version_weight
- (Optional, Map) Grayscale versionalias_name
- (Optional, ForceNew, Computed) Function Aliasdescription
- (Optional) Descriptionfunction_name
- (Required, ForceNew) Function Nameversion_id
- (Optional) The version that the alias points
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as<function_name>:<alias_name>
.create_time
- The creation time of the resource
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Alias.delete
- (Defaults to 5 mins) Used when delete the Alias.update
- (Defaults to 5 mins) Used when update the Alias.
Import
FCV3 Alias can be imported using the id, e.g.
$ terraform import alicloud_fcv3_alias.example <function_name>:<alias_name>
文檔內容是否對您有幫助?