IaC Bazaar
Google CloudStatic-verified

Memorystore Redis/Valkey

Private Memorystore instance or cluster (Redis or Valkey) with auth, TLS and maintenance policy on your VPC.

terraformGCP#gcp
gcp-memorystoreterraform v1.7

Verification

Static-verified

Passed: validated and lint-clean (provider-schema-validated for AWS/Azure/GCP; Terraform-language lint elsewhere).

Conformance

  • Static validation (fmt · validate · tflint)
  • Security scan: findings disclosed (Checkov)
  • Plan tests (mocked: validation rules · outputs)

Provenance

  • SHA-256 checksum
  • Signature (pending)

Functional

  • Live test pending (no cloud run yet)

Last verified 2026-06-28 · how we verify

Documentation

gcp-memorystore

A private Memorystore cache on your VPC — Valkey (the 2026-current google_memorystore_instance path), classic Redis (google_redis_instance), or a sharded Redis cluster (google_redis_cluster) — selected by a single flavor variable. One module call gives you a cache that is private, TLS-encrypted, auth-protected and deletion-protected by default. Works with Terraform and OpenTofu (>= 1.6), Google provider >= 7.0, < 8.0.

Status: static-validated, live-test pending. Validated with tofu validate + tflint + checkov against the hashicorp/google provider. Not yet applied against a live GCP project (no cloud sandbox; a real instance takes 5–10 min to provision), so it ships under live-test quarantine.

Design & secure defaults

  • Private connectivity only. Valkey and Redis-cluster attach to your VPC via PSC auto-connection; classic Redis defaults to connect_mode = PRIVATE_SERVICE_ACCESS. No public endpoint is ever exposed.
  • TLS in transit on (transit_encryption_enabled = true) → SERVER_AUTHENTICATION. The per-flavor enum spelling is handled for you.
  • Auth on (iam_auth_enabled = true): IAM auth for Valkey / Redis-cluster, OSS Redis AUTH (auth_string) for classic Redis, which has no IAM-auth mode.
  • Resilient placement: MULTI_ZONE distribution and replica_count = 1 by default.
  • Durable: RDB persistence on by default so data survives a restart.
  • Deletion protection on by default.

The flavor switch is exactly one resource — the module never creates more than one cache.

Requirements

RequirementVersion
Terraform / OpenTofu>= 1.6
hashicorp/google>= 7.0, < 8.0

License

Commercial — LicenseRef-IaCBazaar-Commercial. See the IaC Bazaar terms.

Usage code & full reference unlock after purchase

The complete copy-paste usage, the full input/output reference, and operational notes ship with your licence — shown here and bundled in the download.

  • Usage
  • Inputs
  • Outputs