redis_sec_group

最近更新时间:2020-11-03 10:55:35

查看PDF

Provides an redis security group function.

Example Usage

variable "available_zone" {
  default = "cn-beijing-6a"
}

resource "ksyun_redis_sec_group" "add" {
  available_zone = "${var.available_zone}"
  name = "testAddTerraform"
  description = "testAddTerraform"
}

resource "ksyun_redis_sec_group_rule" "default" {
  available_zone = "${var.available_zone}"
  security_group_id = "${ksyun_redis_sec_group.add.id}"
  rules = ["172.16.0.0/32","192.168.0.0/32"]
}

resource "ksyun_redis_sec_group_allocate" "default" {
  available_zone = "${var.available_zone}"
  security_group_id = "${ksyun_redis_sec_group.add.id}"
  cache_ids = ["122334234"]
}

Argument Reference

The following arguments are supported:

ksyun_redis_sec_group

  • available_zone- (Required) The Zone to launch the security group .
  • name - (Required) The name of the security group.
  • description - (Required) The description of the security group.

ksyun_redis_sec_group_rule

  • security_group_id- (Required) The ID of the security group .
  • available_zone- (Required) The Zone to launch the security group .
  • rules - (Required) The cidr block of source for the instance, multiple cidr separated by comma.

ksyun_redis_sec_group_allocate

  • available_zone- (Required) The Zone to launch the security group .
  • security_group_id- (Required) The ID of the security group .
  • cache_ids - (Required) The ids of the redis instance .

文档内容是否对您有帮助?

根本没帮助
文档较差
文档一般
文档不错
文档很好

在文档使用中是否遇到以下问题

内容不全,不深入
内容更新不及时
描述不清晰,比较混乱
系统或功能太复杂,缺乏足够的引导
内容冗长

更多建议

0/200

评价建议不能为空

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

问题反馈