layout: "tencentcloud" page_title: "TencentCloud: tencentcloud_mysql_readonly_instance" sidebar_current: "docs-tencentcloud-tencentcloud_mysql_readonly_instance" description: |-

» Provides a mysql instance resource to create read-only database instances.

» tencentcloud_mysql_readonly_instance

Provides a mysql instance resource to create read-only database instances.

» Example Usage

resource " tencentcloud_mysql_readonly_instance " "default" {
  master_instance_id = "cdb-dnqksd9f"
  instance_name =" myTestMysql"
  mem_size = 128000 
  volume_size = 255
  vpc_id = "vpc-12mt3l31"
  subnet_id = "subnet-9uivyb1g"
  intranet_port = 3306
  security_groups = ["sg-ot8eclwz"]
  tags = {
     name ="test"
  }
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

In addition to all arguments above, the following attributes are exported: