Repository navigation
Conversation
The shared searchable override now turns on node-to-node encryption and encryption at rest and uses m5.large.elasticsearch, since t2.small does not support encryption at rest. searchable-usage moves to the v2 transformer and uses the same override.
sarayev
marked this pull request as ready for review
December 1, 2026 08:43
This branch has not been deployed
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.
Description of changes
E2E tests that use
@searchablenow create search domains with node-to-node encryption and encryption at rest turned on. Test code only.How the tests worked before
api_6candsearchable-datastorealready usedoverrides/override-api-gql-searchable.ts, but it only set HTTPS and the TLS policy. Node-to-node encryption stayed off (the CLI default for new domains), there was no encryption at rest, and the default instance type (t2.small.elasticsearch) does not support it.schema-searchable(searchable-usage) used the v1 transformer, which has no encryption settings.What changes
overrides/override-api-gql-searchable.ts: also turns on node-to-node encryption and encryption at rest, and setsElasticsearchClusterConfig.InstanceTypetom5.large.elasticsearch. Applies toapi_6candsearchable-datastore.searchable-usage(schema-searchable) moves from the v1 to the v2 transformer and uses the same override. The override is v2-only, so this is the only way to encrypt its domain. The schema gets@auth(rules: [{ allow: public }]), because on v2 a model without auth rules is not reachable with the API key the test uses (the test replaces the whole schema, so the default global auth rule is gone). Queries and expected results are unchanged.Why it is okay to change
api_6candsearchable-datastorestill test the same behavior.@searchablestays covered:searchable-migrationstill pushes a v1 project and queries it before migrating to v2.m5.large.elasticsearchis the instance type the amplify-category-api transformer e2e tests use.Not changed
searchable-migrationmust deploy a v1 domain first (that is what it tests), and v1 has no encryption settings. Its v2 domain does not use the override either.Description of how you validated changes
tscpasses foramplify-e2e-testsand the override file.8382e053a: Linux 160/160 and Windows 134/134 passed, includingapi_6c,searchable-datastore,schema-searchableandsearchable-migrationon both.AmplifyCLI-PR-Testing): passed.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.