feat(datastore/redis): logical flavour#360
Merged
Merged
Conversation
…ting redis datastore's outputs (no resources) Adds modules/datastore/redis/reference/1.0, a reference (passthrough) flavour for the redis intent. It provisions no cloud resource and requires no providers; it re-exposes the @facets/redis outputs of an existing redis datastore (resolved into var.instance.spec.source via the `x-ui-output-type: @facets/redis` spec field) as a separate logical resource. An optional db_index targets a distinct logical Redis DB on a shared physical instance and is reflected into the emitted connection_string. Use case: staging consolidation — a logical cache pointing at a shared physical instance/db-index. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKZUrLtUbJS5GuEyRA8Vd5
"reference" clashes with Facets' cross-blueprint reference concept. "logical" better describes the use case: a logical redis datastore hosted on a shared/existing physical instance (optional db_index), re-exposing its connection outputs with no resources created. Renames modules/datastore/redis/reference -> .../logical and updates the flavor field, titles, and descriptions accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PKZUrLtUbJS5GuEyRA8Vd5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
logicalflavour for thedatastore/redisintent: a logical redis datastore hosted on an existing/shared physical instance. It creates no cloud resources and requires no providers.It re-exposes the
@facets/redisoutputs of an existing redis datastore — selected via thesourcespec field (x-ui-output-type: @facets/redis, so it resolves to the selected resource's full outputs and is per-env override-able). An optionaldb_index(0–15, default 0) targets a distinct logical Redis DB on the shared physical instance and is reflected into the emittedconnection_string.Use case: staging consolidation — a logical cache pointing at a shared physical instance / DB index.
What it does
intent: redis,flavor: logical, output type@facets/redis(same contract the existing flavours emit:interfaces.clusterwithendpoint/connection_string/auth_token/port/secrets).main.tfdeclares no resources;inputs: {}(no provider-requiring inputs).outputs.tfre-emits the redis interface as a pure passthrough fromvar.instance.spec.source.interfaces.cluster, usinglookup()for optionals;connection_stringgets/<db_index>appended.Validation
terraform fmt✓terraform init -backend=false✓terraform validate✓ (Success! The configuration is valid.)🤖 Generated with Claude Code
https://claude.ai/code/session_01PKZUrLtUbJS5GuEyRA8Vd5