ROS stack retention disabled
이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.Id: 4bb06fa1-2114-4a00-b7b5-6aeab8b896f0
Cloud Provider: Alicloud
Platform: Terraform
Severity: Medium
Category: Backup
Learn More
Description
The retain_stacks attribute should be enabled to preserve the stack when deleting a stack instance from a stack group.
If retain_stacks is undefined or set to false, the underlying alicloud_ros_stack_instance is deleted when the instance is removed. Set retain_stacks = true to retain the stack.
Compliant Code Examples
resource "alicloud_ros_stack_instance" "example" {
stack_group_name = alicloud_ros_stack_group.example.stack_group_name
stack_instance_account_id = "example_value"
stack_instance_region_id = data.alicloud_ros_regions.example.regions.0.region_id
operation_preferences = "{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}"
retain_stacks = true
parameter_overrides {
parameter_value = "VpcName"
parameter_key = "VpcName"
}
}
Non-Compliant Code Examples
resource "alicloud_ros_stack_instance" "example" {
stack_group_name = alicloud_ros_stack_group.example.stack_group_name
stack_instance_account_id = "example_value"
stack_instance_region_id = data.alicloud_ros_regions.example.regions.0.region_id
operation_preferences = "{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}"
parameter_overrides {
parameter_value = "VpcName"
parameter_key = "VpcName"
}
}
resource "alicloud_ros_stack_instance" "example" {
stack_group_name = alicloud_ros_stack_group.example.stack_group_name
stack_instance_account_id = "example_value"
stack_instance_region_id = data.alicloud_ros_regions.example.regions.0.region_id
operation_preferences = "{\"FailureToleranceCount\": 1, \"MaxConcurrentCount\": 2}"
retain_stacks = false
parameter_overrides {
parameter_value = "VpcName"
parameter_key = "VpcName"
}
}