ROS stack without template
이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.Id: 92d65c51-5d82-4507-a2a1-d252e9706855
Cloud Provider: Alicloud
Platform: Terraform
Severity: Medium
Category: Build Process
Learn More
Description
An alicloud_ros_stack resource must define a template using either the template_url or template_body attribute. At least one of these must be present to describe the stack template. If both are missing, the rule reports a MissingAttribute issue indicating that one of the two must be set. This ensures ROS has a template to provision resources.
Compliant Code Examples
resource "alicloud_ros_stack" "example1" {
stack_name = "tf-testaccstack1"
template_body = <<EOF
{
"ROSTemplateFormatVersion": "2015-09-01"
}
EOF
stack_policy_body = <<EOF
{
"Statement": [{
"Action": "Update:Delete",
"Resource": "*",
"Effect": "Allow",
"Principal": "*"
}]
}
EOF
}
Non-Compliant Code Examples
resource "alicloud_ros_stack" "example" {
stack_name = "tf-testaccstack"
stack_policy_body = <<EOF
{
"Statement": [{
"Action": "Update:Delete",
"Resource": "*",
"Effect": "Allow",
"Principal": "*"
}]
}
EOF
}