Meta tags:
description= Create a Memorystore for Redis instance using Terraform, and connect to the instance in the Google Cloud using telnet.;
Headings (most frequently used words):
terraform, memorystore, for, instance, configure, the, to, up, create, redis, cluster, using, before, you, begin, deploy, configuration, file, connect, from, compute, engine, vm, clean, set, multiple, vpc, networks, what, next, products, and, pricing, support, resources, engage,
Text of the page (most frequently used words):
the (61), and (37), for (34), project (34), google (27), cloud (26), #instance (26), you (26), create (23), memorystore (22), cluster (21), redis (20), terraform (20), your (17), with (16), about (15), resources (14), this (12), using (12), that (12), network (10), connect (10), vpc (9), quickstart (9), manage (8), resource (8), service (8), use (8), select (8), code (7), thumb (7), more (7), maintenance (7), set (6), multiple (6), compute (6), telnet (6), networking (6), provider (6), region (6), role (6), roles (6), iam (6), overview (6), samples (5), see (5), page (5), learn (5), instances (5), created (5), delete (5), run (5), from (5), configuration (5), file (5), commands (5), can (5), name (5), connection (5), policy (5), how (5), access (5), search (5), persistence (5), cross (5), português (4), down (4), information (4), need (4), networks (4), configure (4), any (4), engine (4), plan (4), following (4), steps (4), get (4), chosen (4), google_compute_network (4), producer_net (4), central1 (4), sdk (4), selector (4), selecting (4), resourcemanager (4), console (4), new (4), guides (4), tools (4), management (4), data (4), application (4), supported (4), clusters (4), vector (4), scale (4), authentication (4), sign (3), started (3), all (3), products (3), content (3), are (3), registered (3), best (3), practices (3), high (3), creating (3), examples (3), private (3), instructions (3), account (3), used (3), install (3), don (3), already (3), lowercase (3), these (3), shows (3), databases (3), security (3), monitoring (3), monitor (3), applications (3), backups (3), cmek (3), encryption (3), certificate (3), authority (3), replication (3), capacity (3), product (3), 한국어 (2), 日本語 (2), עברית (2), brasil (2), italiano (2), indonesia (2), français (2), español (2), américa (2), latina (2), deutsch (2), english (2), our (2), terms (2), site (2), youtube (2), getting (2), support (2), pricing (2), understand (2), other (2), last (2), updated (2), 2026 (2), utc (2), licensed (2), under (2), license (2), send (2), feedback (2), availability (2), replicas (2), next (2), setting (2), connectivity (2), find (2), apply (2), init (2), enter (2), address (2), apt (2), have (2), uses (2), authorized (2), deploy (2), example (2), network_id (2), subnet (2), subnet_id (2), policy_name (2), must (2), start (2), letter (2), cluster_id (2), project_id (2), google_network_connectivity_service_connection_policy (2), default (2), basic (2), google_compute_subnetwork (2), producer_subnet (2), update (2), verify (2), billing (2), enabled (2), keep (2), procedure (2), instead (2), existing (2), after (2), finish (2), removing (2), associated (2), note (2), creator (2), which (2), contains (2), permission (2), grant (2), projects (2), projectcreator (2), doesn (2), require (2), specific (2), been (2), granted (2), required (2), also (2), free (2), authenticating (2), based (2), documentation (2), languages (2), frameworks (2), infrastructure (2), costs (2), usage (2), storage (2), observability (2), migration (2), industry (2), solutions (2), distributed (2), hybrid (2), multicloud (2), analytics (2), pipelines (2), hosting (2), development (2), issues (2), troubleshoot (2), metrics (2), logs (2), view (2), info (2), rdb (2), aof (2), customer (2), managed (2), shared (2), transit (2), control (2), client (2), library (2), connections (2), reference (2), technology (2), areas (2), close (2), subscribe, newsletter, third, decade, climate, action, join, cookies, privacy, tech, twitter, events, blog, engage, training, certification, architecture, center, github, system, status, release, notes, community, forums, contact, sales, marketplace, easy, easytounderstand, solved, problem, solvedmyproblem, otherup, hard, hardtounderstand, incorrect, sample, incorrectinformationorsamplecode, missing, missingtheinformationsamplesineed, otherdown, tell, except, otherwise, noted, details, java, trademark, oracle, its, affiliates, developers, policies, apache, creative, commons, attribution, what, sections, show, virtual, google_redis_cluster_user_created_connections, vms, destroy, remove, google_redis_instance, avoid, incurring, charges, clean, pong, result, ping, session, some, cluster_discovery_endpoint_port_number, cluster_discovery_endpoint_ip_address, terminal, replacing, appropriate, values, variables, sudo, same, one, linux, newly, characters, only, letters, numbers, hyphens, end, number, replace, google_redis_cluster, shard_count, psc_configs, replica_count, depends_on, location, service_class, gcp, description, psc_config, subnetworks, ip_cidr_range, 248, auto_create_subnetworks, false, add, adding, follows, guide, three, nodes, highmem, medium, section, five, needed, enable, api, gcloud, components, installed, haven, when, prompted, choose, selected, above, evaluate, perform, real, world, scenarios, customers, 300, credits, test, workloads, before, begin, assumes, starting, includes, however, omits, save, categorize, preferences, stay, organized, collections, home, isn, utilization, expensive, health, audit, self, simulate, windows, build, llm, powered, langchain, integrate, technologies, json, features, limitations, query, syntax, indexing, vectors, command, dropindex, _list, generative, back, keys, custom, constraints, controls, per, token, secure, configurations, prevent, deletion, replica, count, work, secondary, scaling, list, provisioned, automatically, user, vpcs, provisioning, environments, blocked, operational, guidelines, node, specification, single, zone, discover, skip, main,
Text of the page (random words):
quickstart create a memorystore for redis instance by using terraform memorystore for redis cluster google cloud documentation skip to main content technology areas close ai and ml application development application hosting compute data analytics and pipelines databases distributed hybrid and multicloud industry solutions migration networking observability and monitoring security storage cross product tools close access and resources management costs and usage management infrastructure as code sdk languages frameworks and tools console english deutsch español américa latina français indonesia italiano português português brasil עברית 中文 简体 中文 繁體 日本語 한국어 sign in memorystore memorystore for redis cluster start free overview guides reference resources technology areas more overview guides reference resources cross product tools more console discover product overview high availability and replicas single zone instances cluster and node specification use best practices best practices operational guidelines client library code samples supported and blocked commands supported environments get started quickstart instance provisioning on a vpc network on a shared vpc network quickstart multiple vpcs set up multiple vpc networks using user registered connections set up multiple vpc networks for instances provisioned with automatically registered connections quickstart using terraform create and manage instances create instances list clusters view cluster information scale instance capacity about scaling instance capacity scale instance capacity manage cross region replication using secondary clusters about cross region replication work with cross region replication scale replica count prevent deletion of a cluster delete clusters connect networking networking about multiple vpc networking client library connection code samples connect to an instance configure configure an instance supported instance configurations secure and control access access control with iam iam authentication about iam authentication manage iam authentication manage basic token based authentication in transit encryption about in transit encryption use a per instance certificate authority ca use a shared certificate authority ca use a customer managed certificate authority ca security overview use vpc service controls manage resources with custom constraints customer managed encryption keys cmek about cmek use cmek back up data backups backups overview manage backups persistence persistence overview about rdb persistence about aof persistence manage rdb and aof persistence scale data vector search vector search for generative ai applications vector search commands vector search commands ft create ft search ft info ft _list ft dropindex info command metrics guides indexing vectors query syntax features and limitations about json memorystore for redis cluster ai integrate with ai technologies build llm powered applications using langchain connect to memorystore for redis cluster from ai applications maintenance about maintenance find and set maintenance windows simulate maintenance self service maintenance view maintenance logs monitor and troubleshoot monitor clusters monitor access using audit logs supported monitoring metrics troubleshoot issues address health issues expensive commands high resource utilization the maintenance policy isn t set ai and ml application development application hosting compute data analytics and pipelines databases distributed hybrid and multicloud industry solutions migration networking observability and monitoring security storage access and resources management costs and usage management infrastructure as code sdk languages frameworks and tools home documentation databases memorystore memorystore for redis cluster guides send feedback stay organized with collections save and categorize content based on your preferences create a memorystore for redis cluster instance using terraform this quickstart shows you how to use terraform to create a new memorystore for redis cluster instance it also shows you how to connect to the instance using telnet this quickstart assumes you are starting a new terraform file and includes the terraform resource for setting up the google cloud provider however it omits the steps for authenticating your terraform file with the google cloud provider for instructions on authenticating terraform with the google cloud provider see getting started with the google cloud provider before you begin sign in to your google cloud account if you re new to google cloud create an account to evaluate how our products perform in real world scenarios new customers also get 300 in free credits to run test and deploy workloads in the google cloud console on the project selector page select or create a google cloud project roles required to select or create a project select a project selecting a project doesn t require a specific iam role you can select any project that you ve been granted a role on create a project to create a project you need the project creator role roles resourcemanager projectcreator which contains the resourcemanager projects create permission learn how to grant roles note if you don t plan to keep the resources that you create in this procedure create a project instead of selecting an existing project after you finish these steps you can delete the project removing all resources associated with the project go to project selector verify that billing is enabled for your google cloud project in the google cloud console on the project selector page select or create a google cloud project roles required to select or create a project select a project selecting a project doesn t require a specific iam role you can select any project that you ve been granted a role on create a project to create a project you need the project creator role roles resourcemanager projectcreator which contains the resourcemanager projects create permission learn how to grant roles note if you don t plan to keep the resources that you create in this procedure create a project instead of selecting an existing project after you finish these steps you can delete the project removing all resources associated with the project go to project selector verify that billing is enabled for your google cloud project if you haven t already install the google cloud sdk when prompted choose the project that you selected or created above if you already have the google cloud sdk installed update it gcloud components update enable the memorystore for redis cluster api memorystore for redis cluster configure terraform for memorystore this section shows examples of five terraform resources needed to create a memorystore for redis cluster instance the google cloud provider configuration a memorystore instance configuration in this guide it is a 39 gb cluster with three redis highmem medium nodes in the us central1 region a private service connect service connection policy a subnet for your instance a network for your instance the instructions for adding these terraform resources are as follows add the following resources to your terraform configuration file provider google project project_id resource google_redis_cluster cluster ha name cluster_id shard_count 3 psc_configs network google_compute_network producer_net id region us central1 replica_count 1 depends_on google_network_connectivity_service_connection_policy default resource google_network_connectivity_service_connection_policy default name policy_name location us central1 service_class gcp memorystore redis description my basic service connection policy network google_compute_network producer_net id psc_config subnetworks google_compute_subnetwork producer_subnet id resource google_compute_subnetwork producer_subnet name subnet_id ip_cidr_range 10 0 0 248 29 region us central1 network google_compute_network producer_net id resource google_compute_network producer_net name network_id auto_create_subnetworks false replace the following project_id is your instance s project id cluster_id is your chosen id of the memorystore for redis cluster instance you re creating the id must be 1 to 63 characters and use only lowercase letters numbers or hyphens it must start with a lowercase letter and end with a lowercase letter or number policy_name is your chosen name for the private service connect service connection policy for your project for more information about the service connection policy see networking subnet_id is your chosen id of the subnet created in this example that is used by the memorystore cluster network_id is your chosen id of the network created in this example that is used by the memorystore cluster deploy the terraform configuration file run terraform init run terraform plan run terraform apply connect to the instance from a compute engine vm next connect to the newly created memorystore for redis cluster instance you can connect to the instance from any compute engine vm that uses the instance s authorized network if you don t already have a compute engine vm that uses that same authorized network as your instance create one and connect to it by following quickstart using a linux vm install telnet using apt get sudo apt get install telnet from the terminal telnet to the ip address of the instance replacing variables with appropriate values telnet cluster_discovery_endpoint_ip_address cluster_discovery_endpoint_port_number in the telnet session enter some redis commands enter ping result pong clean up to avoid incurring charges to your google cloud account for the resources used in this quickstart delete the redis instance using the following steps remove the google_redis_instance resource from your terraform configuration file run terraform init plan and apply to destroy the redis resource delete any compute engine vms you created for this quickstart configure terraform to set up multiple vpc networks the sections in this page show examples of creating a memorystore for redis cluster instance and setting up connectivity in a virtual private cloud vpc network to find instructions and examples of using terraform to set up connectivity in multiple vpc networks see the google_redis_cluster_user_created_connections page what s next learn more about creating instances learn more about high availability and replicas learn more about best practices for memorystore for redis cluster send feedback except as otherwise noted the content of this page is licensed under the creative commons attribution 4 0 license and code samples are licensed under the apache 2 0 license for details see the google developers site policies java is a registered trademark of oracle and or its affiliates last updated 2026 07 10 utc need to tell us more easy to understand easytounderstand thumb up solved my problem solvedmyproblem thumb up other otherup thumb up hard to understand hardtounderstand thumb down incorrect information or sample code incorrectinformationorsamplecode thumb down missing the information samples i need missingtheinformationsamplesineed thumb down other otherdown thumb down last updated 2026 07 10 utc products and pricing see all products google cloud pricing google cloud marketplace contact sales support community forums support release notes system status resources github getting started with google cloud code samples cloud architecture center training and certification engage blog events x twitter google cloud on youtube google cloud tech on youtube about google privacy site terms google cloud terms manage cookies our third decade of climate action join us sign up for the google cloud newsletter subscribe english deutsch español américa latina français indonesia italiano português português brasil עברית 中文 简体 中文 繁體 日本語 한국어
|