1616
1717# [START cloud_sql_mysql_instance_mcp_creation]
1818resource "google_sql_database_instance" "mysql_mcp_creation" {
19- name = " mysql-instance-mcp-creation"
20- region = " us-central1"
21- database_version = " MYSQL_8_0"
19+ name = " mysql-instance-mcp-creation"
20+ region = " us-central1"
21+ database_version = " MYSQL_8_0"
2222 deletion_protection = false
2323
2424 settings {
25- tier = " db-perf-optimized-N-2"
25+ tier = " db-perf-optimized-N-2"
2626 edition = " ENTERPRISE_PLUS"
2727 connection_pool_config {
2828 connection_pooling_enabled = true
@@ -34,13 +34,13 @@ resource "google_sql_database_instance" "mysql_mcp_creation" {
3434# [START cloud_sql_mysql_instance_mcp_enable]
3535# This example shows creating an instance with MCP enabled and custom flags set.
3636resource "google_sql_database_instance" "mysql_mcp_enable" {
37- name = " mysql-instance-mcp-enable"
38- region = " us-central1"
39- database_version = " MYSQL_8_0"
37+ name = " mysql-instance-mcp-enable"
38+ region = " us-central1"
39+ database_version = " MYSQL_8_0"
4040 deletion_protection = false
4141
4242 settings {
43- tier = " db-perf-optimized-N-2"
43+ tier = " db-perf-optimized-N-2"
4444 edition = " ENTERPRISE_PLUS"
4545 connection_pool_config {
4646 connection_pooling_enabled = true
@@ -52,13 +52,13 @@ resource "google_sql_database_instance" "mysql_mcp_enable" {
5252# [START cloud_sql_mysql_instance_mcp_modify]
5353# This example shows modifying the flags of an existing MCP configuration.
5454resource "google_sql_database_instance" "mysql_mcp_modify" {
55- name = " mysql-instance-mcp-modify"
56- region = " us-central1"
57- database_version = " MYSQL_8_0"
55+ name = " mysql-instance-mcp-modify"
56+ region = " us-central1"
57+ database_version = " MYSQL_8_0"
5858 deletion_protection = false
5959
6060 settings {
61- tier = " db-perf-optimized-N-2"
61+ tier = " db-perf-optimized-N-2"
6262 edition = " ENTERPRISE_PLUS"
6363 connection_pool_config {
6464 connection_pooling_enabled = true
@@ -74,13 +74,13 @@ resource "google_sql_database_instance" "mysql_mcp_modify" {
7474# [START cloud_sql_mysql_instance_mcp_disable]
7575# This example shows disabling MCP on an existing instance.
7676resource "google_sql_database_instance" "mysql_mcp_disable" {
77- name = " mysql-instance-mcp-disable"
78- region = " us-central1"
79- database_version = " MYSQL_8_0"
77+ name = " mysql-instance-mcp-disable"
78+ region = " us-central1"
79+ database_version = " MYSQL_8_0"
8080 deletion_protection = false
8181
8282 settings {
83- tier = " db-perf-optimized-N-2"
83+ tier = " db-perf-optimized-N-2"
8484 edition = " ENTERPRISE_PLUS"
8585 connection_pool_config {
8686 # Set to false to disable MCP. You can also remove the block entirely.
0 commit comments